diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-07-26 15:01:27 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2021-08-09 23:57:04 +0300 |
commit | 71d3d0ebc894294ef9454e45a3ac2e9ba60b3351 (patch) | |
tree | 7102f0d2853d0b4181443fbbb2659723cd15bcfd /net/sunrpc/debugfs.c | |
parent | 8d863b1f0541ea540cb47d1454eb060963a79d5f (diff) | |
download | linux-71d3d0ebc894294ef9454e45a3ac2e9ba60b3351.tar.xz |
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 'net/sunrpc/debugfs.c')
-rw-r--r-- | net/sunrpc/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/debugfs.c b/net/sunrpc/debugfs.c index 56029e3af6ff..79995eb95927 100644 --- a/net/sunrpc/debugfs.c +++ b/net/sunrpc/debugfs.c @@ -90,7 +90,7 @@ static int tasks_open(struct inode *inode, struct file *filp) struct seq_file *seq = filp->private_data; struct rpc_clnt *clnt = seq->private = inode->i_private; - if (!atomic_inc_not_zero(&clnt->cl_count)) { + if (!refcount_inc_not_zero(&clnt->cl_count)) { seq_release(inode, filp); ret = -EINVAL; } |