diff options
author | Weston Andros Adamson <dros@netapp.com> | 2012-10-23 16:43:46 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-04 20:43:42 +0100 |
commit | f50ad42837eb874c1a0cd7cca2001364b06f7ac4 (patch) | |
tree | 5980e10e49e08b94dff81d2a85f5f6189328c2ef /net | |
parent | SUNRPC: remove BUG_ON in svc_register (diff) | |
download | linux-f50ad42837eb874c1a0cd7cca2001364b06f7ac4.tar.xz linux-f50ad42837eb874c1a0cd7cca2001364b06f7ac4.zip |
SUNRPC: remove BUG_ON from __rpc_sleep_on_priority
Replace BUG_ON() with WARN_ON_ONCE().
Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index f494b356e876..e6db49699bce 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c @@ -334,7 +334,7 @@ static void __rpc_sleep_on_priority(struct rpc_wait_queue *q, __rpc_add_wait_queue(q, task, queue_priority); - BUG_ON(task->tk_callback != NULL); + WARN_ON_ONCE(task->tk_callback != NULL); task->tk_callback = action; __rpc_add_timer(q, task); } |