aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-06-16 14:17:01 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-10 23:40:28 -0400
commit4bef61ff7514396419563ca54fd42ef846485b06 (patch)
tree5ea7eca032557a8ae307661b8c2b887fac257476 /include/linux/sunrpc
parent6529eba08fe7297852391a468d95322913de73fa (diff)
SUNRPC: Add a per-rpc_clnt spinlock
Use that to protect the rpc_clnt->cl_tasks list instead of using a global lock. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/clnt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h
index 0801ab5407ce..2f4b520a7419 100644
--- a/include/linux/sunrpc/clnt.h
+++ b/include/linux/sunrpc/clnt.h
@@ -28,6 +28,7 @@ struct rpc_clnt {
28 atomic_t cl_users; /* number of references */ 28 atomic_t cl_users; /* number of references */
29 struct list_head cl_clients; /* Global list of clients */ 29 struct list_head cl_clients; /* Global list of clients */
30 struct list_head cl_tasks; /* List of tasks */ 30 struct list_head cl_tasks; /* List of tasks */
31 spinlock_t cl_lock; /* spinlock */
31 struct rpc_xprt * cl_xprt; /* transport */ 32 struct rpc_xprt * cl_xprt; /* transport */
32 struct rpc_procinfo * cl_procinfo; /* procedure info */ 33 struct rpc_procinfo * cl_procinfo; /* procedure info */
33 u32 cl_prog, /* RPC program number */ 34 u32 cl_prog, /* RPC program number */