Skip to content

Commit

Permalink
SUNRPC: remove BUG_ON from svc_pool_map_set_cpumask
Browse files Browse the repository at this point in the history
Replace BUG_ON() with a WARN() and early return.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Weston Andros Adamson authored and Trond Myklebust committed Nov 4, 2012
1 parent f30dfbb commit 1bd58aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/sunrpc/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ svc_pool_map_set_cpumask(struct task_struct *task, unsigned int pidx)
* The caller checks for sv_nrpools > 1, which
* implies that we've been initialized.
*/
BUG_ON(m->count == 0);
WARN_ON_ONCE(m->count == 0);
if (m->count == 0)
return;

switch (m->mode) {
case SVC_POOL_PERCPU:
Expand Down

0 comments on commit 1bd58aa

Please sign in to comment.