projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f30dfbb
)
SUNRPC: remove BUG_ON from svc_pool_map_set_cpumask
author
Weston Andros Adamson
<dros@netapp.com>
Tue, 23 Oct 2012 14:43:38 +0000
(10:43 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sun, 4 Nov 2012 19:43:41 +0000
(14:43 -0500)
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>
net/sunrpc/svc.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/svc.c
b/net/sunrpc/svc.c
index 3ee7461926d8a01318ed2876e37651506c6b3c4b..664979bee1d23093cc9f68685e0144c81add7203 100644
(file)
--- 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)
* 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: