diff options
author | Weston Andros Adamson <dros@netapp.com> | 2012-10-23 10:43:33 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-04 14:43:41 -0500 |
commit | f30dfbba1682fde22f5a728f23d97a7a59a39fa0 (patch) | |
tree | ee42c6ce155a5af0bf126ee4893084fce639af43 /net | |
parent | 749386e906e76e3244030c35aeccfcb19c3357b8 (diff) |
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: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/backchannel_rqst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/backchannel_rqst.c b/net/sunrpc/backchannel_rqst.c index 80aa881e38e3..890a29912d5a 100644 --- a/net/sunrpc/backchannel_rqst.c +++ b/net/sunrpc/backchannel_rqst.c | |||
@@ -59,7 +59,7 @@ static void xprt_free_allocation(struct rpc_rqst *req) | |||
59 | struct xdr_buf *xbufp; | 59 | struct xdr_buf *xbufp; |
60 | 60 | ||
61 | dprintk("RPC: free allocations for req= %p\n", req); | 61 | dprintk("RPC: free allocations for req= %p\n", req); |
62 | BUG_ON(test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state)); | 62 | WARN_ON_ONCE(test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state)); |
63 | xbufp = &req->rq_private_buf; | 63 | xbufp = &req->rq_private_buf; |
64 | free_page((unsigned long)xbufp->head[0].iov_base); | 64 | free_page((unsigned long)xbufp->head[0].iov_base); |
65 | xbufp = &req->rq_snd_buf; | 65 | xbufp = &req->rq_snd_buf; |
@@ -258,7 +258,7 @@ void xprt_free_bc_request(struct rpc_rqst *req) | |||
258 | dprintk("RPC: free backchannel req=%p\n", req); | 258 | dprintk("RPC: free backchannel req=%p\n", req); |
259 | 259 | ||
260 | smp_mb__before_clear_bit(); | 260 | smp_mb__before_clear_bit(); |
261 | BUG_ON(!test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state)); | 261 | WARN_ON_ONCE(!test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state)); |
262 | clear_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state); | 262 | clear_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state); |
263 | smp_mb__after_clear_bit(); | 263 | smp_mb__after_clear_bit(); |
264 | 264 | ||