SUNRPC: remove BUG_ON from rpc_run_bc_task
Replace BUG_ON() with WARN_ON_ONCE() - rpc_run_bc_task calls rpc_init_task() then increments the tk_count, so this is a simple sanity check that if hit once would hit every time this code path is executed. Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
922eeac30d
commit
9a6478f6cc
1 changed files with 1 additions and 1 deletions
|
@ -918,7 +918,7 @@ struct rpc_task *rpc_run_bc_task(struct rpc_rqst *req,
|
|||
|
||||
task->tk_action = call_bc_transmit;
|
||||
atomic_inc(&task->tk_count);
|
||||
BUG_ON(atomic_read(&task->tk_count) != 2);
|
||||
WARN_ON_ONCE(atomic_read(&task->tk_count) != 2);
|
||||
rpc_execute(task);
|
||||
|
||||
out:
|
||||
|
|
Loading…
Reference in a new issue