From: Weston Andros Adamson Date: Tue, 23 Oct 2012 14:43:46 +0000 (-0400) Subject: SUNRPC: remove BUG_ON from __rpc_sleep_on_priority X-Git-Tag: next-20121102~90^2~12 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1b8ac85c27590f987986a16527405e57a584c812;p=karo-tx-linux.git SUNRPC: remove BUG_ON from __rpc_sleep_on_priority Replace BUG_ON() with WARN_ON_ONCE(). Signed-off-by: Weston Andros Adamson Signed-off-by: Trond Myklebust --- 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); }