diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-06-14 16:40:32 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-10 23:40:29 -0400 |
commit | 4c402b40970382ded616eadd544fd63feb76cc79 (patch) | |
tree | ddff43479ae51f0ba5af566b09e0188563aab17b /include/linux/sunrpc/clnt.h | |
parent | 8ad7c892e18ff8e6df422eb48ca0f73268ffd632 (diff) |
SUNRPC: Remove rpc_clnt->cl_count
The kref now does most of what cl_count + cl_user used to do. The only
remaining role for cl_count is to tell us if we are in a 'shutdown'
phase. We can provide that information using a single bit field instead
of a full atomic counter.
Also rename rpc_destroy_client() to rpc_close_client(), which reflects
better what its role is these days.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc/clnt.h')
-rw-r--r-- | include/linux/sunrpc/clnt.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index fe7ea65ed0ae..cf03494c36e7 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h | |||
@@ -25,7 +25,6 @@ struct rpc_inode; | |||
25 | */ | 25 | */ |
26 | struct rpc_clnt { | 26 | struct rpc_clnt { |
27 | struct kref cl_kref; /* Number of references */ | 27 | struct kref cl_kref; /* Number of references */ |
28 | atomic_t cl_count; /* Number of clones */ | ||
29 | struct list_head cl_clients; /* Global list of clients */ | 28 | struct list_head cl_clients; /* Global list of clients */ |
30 | struct list_head cl_tasks; /* List of tasks */ | 29 | struct list_head cl_tasks; /* List of tasks */ |
31 | spinlock_t cl_lock; /* spinlock */ | 30 | spinlock_t cl_lock; /* spinlock */ |
@@ -119,8 +118,7 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args); | |||
119 | struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *, | 118 | struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *, |
120 | struct rpc_program *, int); | 119 | struct rpc_program *, int); |
121 | struct rpc_clnt *rpc_clone_client(struct rpc_clnt *); | 120 | struct rpc_clnt *rpc_clone_client(struct rpc_clnt *); |
122 | int rpc_shutdown_client(struct rpc_clnt *); | 121 | void rpc_shutdown_client(struct rpc_clnt *); |
123 | int rpc_destroy_client(struct rpc_clnt *); | ||
124 | void rpc_release_client(struct rpc_clnt *); | 122 | void rpc_release_client(struct rpc_clnt *); |
125 | void rpc_register_client(struct rpc_clnt *); | 123 | void rpc_register_client(struct rpc_clnt *); |
126 | void rpc_unregister_client(struct rpc_clnt *); | 124 | void rpc_unregister_client(struct rpc_clnt *); |