diff options
author | 2021-07-26 08:01:27 -0400 | |
---|---|---|
committer | 2021-08-09 16:57:04 -0400 | |
commit | 71d3d0ebc894294ef9454e45a3ac2e9ba60b3351 (patch) | |
tree | 7102f0d2853d0b4181443fbbb2659723cd15bcfd /include/linux/sunrpc | |
parent | xprtrdma: Eliminate rpcrdma_post_sends() (diff) | |
download | linux-71d3d0ebc894294ef9454e45a3ac2e9ba60b3351.tar.gz linux-71d3d0ebc894294ef9454e45a3ac2e9ba60b3351.tar.bz2 linux-71d3d0ebc894294ef9454e45a3ac2e9ba60b3351.zip |
SUNRPC: Convert rpc_client refcount to use refcount_t
There are now tools in the refcount library that allow us to convert the
client shutdown code.
Reported-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/clnt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index 8b5d5c97553e..b2edd5fc2f0c 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h @@ -14,6 +14,7 @@ #include <linux/socket.h> #include <linux/in.h> #include <linux/in6.h> +#include <linux/refcount.h> #include <linux/sunrpc/msg_prot.h> #include <linux/sunrpc/sched.h> @@ -35,7 +36,7 @@ struct rpc_sysfs_client; * The high-level client handle */ struct rpc_clnt { - atomic_t cl_count; /* Number of references */ + refcount_t cl_count; /* Number of references */ unsigned int cl_clid; /* client id */ struct list_head cl_clients; /* Global list of clients */ struct list_head cl_tasks; /* List of tasks */ |