Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346553
b: refs/heads/master
c: c4ded8d
h: refs/heads/master
i:
  346551: a77faa6
v: v3
  • Loading branch information
Weston Andros Adamson authored and Trond Myklebust committed Nov 4, 2012
1 parent ab3db7e commit d07ef17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e454a7a83d20cc5ec338ad0e3abae85f10d5a0c4
refs/heads/master: c4ded8d9771c8e8d5d7a202d58af9c70591dd675
5 changes: 4 additions & 1 deletion trunk/net/sunrpc/backchannel_rqst.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ void xprt_destroy_backchannel(struct rpc_xprt *xprt, unsigned int max_reqs)

dprintk("RPC: destroy backchannel transport\n");

BUG_ON(max_reqs == 0);
if (max_reqs == 0)
goto out;

spin_lock_bh(&xprt->bc_pa_lock);
xprt_dec_alloc_count(xprt, max_reqs);
list_for_each_entry_safe(req, tmp, &xprt->bc_pa_list, rq_bc_pa_list) {
Expand All @@ -202,6 +204,7 @@ void xprt_destroy_backchannel(struct rpc_xprt *xprt, unsigned int max_reqs)
}
spin_unlock_bh(&xprt->bc_pa_lock);

out:
dprintk("RPC: backchannel list empty= %s\n",
list_empty(&xprt->bc_pa_list) ? "true" : "false");
}
Expand Down

0 comments on commit d07ef17

Please sign in to comment.