Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276890
b: refs/heads/master
c: c25573b
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Dec 1, 2011
1 parent 1938fdd commit 4637b1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 7fdcf13b292e8b2e38e42de24be2503e37b2cf97
refs/heads/master: c25573b5134294c0be82bfaecc6d08136835b271
10 changes: 4 additions & 6 deletions trunk/net/sunrpc/xprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,13 +995,11 @@ static void xprt_alloc_slot(struct rpc_task *task)

static void xprt_free_slot(struct rpc_xprt *xprt, struct rpc_rqst *req)
{
if (xprt_dynamic_free_slot(xprt, req))
return;

memset(req, 0, sizeof(*req)); /* mark unused */

spin_lock(&xprt->reserve_lock);
list_add(&req->rq_list, &xprt->free);
if (!xprt_dynamic_free_slot(xprt, req)) {
memset(req, 0, sizeof(*req)); /* mark unused */
list_add(&req->rq_list, &xprt->free);
}
rpc_wake_up_next(&xprt->backlog);
spin_unlock(&xprt->reserve_lock);
}
Expand Down

0 comments on commit 4637b1a

Please sign in to comment.