Commit 010472980724ed7bbabf818b4232bf3b182b94c5
Committed by
Trond Myklebust
1 parent
2bd4eef87b
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
SUNRPC: remove BUG_ON in svc_delete_xprt
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
net/sunrpc/svc_xprt.c
... | ... | @@ -931,7 +931,7 @@ |
931 | 931 | spin_lock_bh(&serv->sv_lock); |
932 | 932 | if (!test_and_set_bit(XPT_DETACHED, &xprt->xpt_flags)) |
933 | 933 | list_del_init(&xprt->xpt_list); |
934 | - BUG_ON(!list_empty(&xprt->xpt_ready)); | |
934 | + WARN_ON_ONCE(!list_empty(&xprt->xpt_ready)); | |
935 | 935 | if (test_bit(XPT_TEMP, &xprt->xpt_flags)) |
936 | 936 | serv->sv_tmpcnt--; |
937 | 937 | spin_unlock_bh(&serv->sv_lock); |