Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9939
b: refs/heads/master
c: 5dc0772
h: refs/heads/master
i:
  9937: a04b98e
  9935: 63da304
v: v3
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Sep 23, 2005
1 parent 0311d3c commit 3202ccb
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 4a0f8c04f2ece949d54a0c4fd7490259cf23a58a
refs/heads/master: 5dc07727f86b25851e95193a0c484ea21b531c47
2 changes: 1 addition & 1 deletion trunk/include/linux/sunrpc/xprt.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ struct rpc_xprt {
* Send stuff
*/
spinlock_t transport_lock; /* lock transport info */
spinlock_t xprt_lock; /* lock xprt info */
spinlock_t reserve_lock; /* lock slot table */
struct rpc_task * snd_task; /* Task blocked in send */

struct list_head recv;
Expand Down
10 changes: 5 additions & 5 deletions trunk/net/sunrpc/xprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,9 +643,9 @@ void xprt_reserve(struct rpc_task *task)

task->tk_status = -EIO;
if (!xprt->shutdown) {
spin_lock(&xprt->xprt_lock);
spin_lock(&xprt->reserve_lock);
do_xprt_reserve(task);
spin_unlock(&xprt->xprt_lock);
spin_unlock(&xprt->reserve_lock);
}
}

Expand Down Expand Up @@ -698,10 +698,10 @@ void xprt_release(struct rpc_task *task)

dprintk("RPC: %4d release request %p\n", task->tk_pid, req);

spin_lock(&xprt->xprt_lock);
spin_lock(&xprt->reserve_lock);
list_add(&req->rq_list, &xprt->free);
xprt_clear_backlog(xprt);
spin_unlock(&xprt->xprt_lock);
spin_unlock(&xprt->reserve_lock);
}

/**
Expand Down Expand Up @@ -751,7 +751,7 @@ static struct rpc_xprt *xprt_setup(int proto, struct sockaddr_in *ap, struct rpc
}

spin_lock_init(&xprt->transport_lock);
spin_lock_init(&xprt->xprt_lock);
spin_lock_init(&xprt->reserve_lock);
init_waitqueue_head(&xprt->cong_wait);

INIT_LIST_HEAD(&xprt->free);
Expand Down

0 comments on commit 3202ccb

Please sign in to comment.