diff options
author | Weston Andros Adamson <dros@netapp.com> | 2012-10-23 10:43:38 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-04 14:43:41 -0500 |
commit | 1bd58aaff44485ec9e3640af350f6ba1b33e2bec (patch) | |
tree | 0d01305d4e7453e45d206bdcf5145db6f4ac4fc8 /net/sunrpc/svc.c | |
parent | f30dfbba1682fde22f5a728f23d97a7a59a39fa0 (diff) |
SUNRPC: remove BUG_ON from svc_pool_map_set_cpumask
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>
Diffstat (limited to 'net/sunrpc/svc.c')
-rw-r--r-- | net/sunrpc/svc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 3ee7461926d8..664979bee1d2 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c | |||
@@ -324,7 +324,9 @@ svc_pool_map_set_cpumask(struct task_struct *task, unsigned int pidx) | |||
324 | * The caller checks for sv_nrpools > 1, which | 324 | * The caller checks for sv_nrpools > 1, which |
325 | * implies that we've been initialized. | 325 | * implies that we've been initialized. |
326 | */ | 326 | */ |
327 | BUG_ON(m->count == 0); | 327 | WARN_ON_ONCE(m->count == 0); |
328 | if (m->count == 0) | ||
329 | return; | ||
328 | 330 | ||
329 | switch (m->mode) { | 331 | switch (m->mode) { |
330 | case SVC_POOL_PERCPU: | 332 | case SVC_POOL_PERCPU: |