Skip to content

Commit

Permalink
SUNRPC: remove BUG_ON from __rpc_sleep_on_priority
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Weston Andros Adamson authored and Trond Myklebust committed Nov 4, 2012
1 parent 0af3950 commit f50ad42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f50ad42

Please sign in to comment.