Commit 4c9c52e479f493ccfc3f513e870912115b49058f

Authored by Weston Andros Adamson
Committed by Trond Myklebust
1 parent c4ded8d977

SUNRPC: remove BUG_ON from bc_send

Replace BUG_ON() with WARN_ON_ONCE(). The error condition is a simple
ref counting sanity check and the following code will not free anything
until final put.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -53,7 +53,7 @@
53 53 if (IS_ERR(task))
54 54 ret = PTR_ERR(task);
55 55 else {
56   - BUG_ON(atomic_read(&task->tk_count) != 1);
  56 + WARN_ON_ONCE(atomic_read(&task->tk_count) != 1);
57 57 ret = task->tk_status;
58 58 rpc_put_task(task);
59 59 }