提交 f30dfbba 编写于 作者: W Weston Andros Adamson 提交者: Trond Myklebust

SUNRPC: remove two BUG_ON asserts

Replace two BUG_ON() calls checking the RPC_BC_PA_IN_USE flag with
WARN_ON_ONCE().
Signed-off-by: NWeston Andros Adamson <dros@netapp.com>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 749386e9
...@@ -59,7 +59,7 @@ static void xprt_free_allocation(struct rpc_rqst *req) ...@@ -59,7 +59,7 @@ static void xprt_free_allocation(struct rpc_rqst *req)
struct xdr_buf *xbufp; struct xdr_buf *xbufp;
dprintk("RPC: free allocations for req= %p\n", req); dprintk("RPC: free allocations for req= %p\n", req);
BUG_ON(test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state)); WARN_ON_ONCE(test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state));
xbufp = &req->rq_private_buf; xbufp = &req->rq_private_buf;
free_page((unsigned long)xbufp->head[0].iov_base); free_page((unsigned long)xbufp->head[0].iov_base);
xbufp = &req->rq_snd_buf; xbufp = &req->rq_snd_buf;
...@@ -258,7 +258,7 @@ void xprt_free_bc_request(struct rpc_rqst *req) ...@@ -258,7 +258,7 @@ void xprt_free_bc_request(struct rpc_rqst *req)
dprintk("RPC: free backchannel req=%p\n", req); dprintk("RPC: free backchannel req=%p\n", req);
smp_mb__before_clear_bit(); smp_mb__before_clear_bit();
BUG_ON(!test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state)); WARN_ON_ONCE(!test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state));
clear_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state); clear_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state);
smp_mb__after_clear_bit(); smp_mb__after_clear_bit();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册