diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-06-14 20:40:31 (GMT) |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-11 03:40:28 (GMT) |
commit | 34f52e3591f241b825353ba27def956d8487c400 (patch) | |
tree | 9f7f0cd52f206095217bd2469e31c2531cbae0a4 /net/sunrpc/rpc_pipe.c | |
parent | c44fe705530ff9ea5e563bf9b65bdd29defe682b (diff) | |
download | linux-fsl-qoriq-34f52e3591f241b825353ba27def956d8487c400.tar.xz |
SUNRPC: Convert rpc_clnt->cl_users to a kref
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 5887457d..826190d 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c @@ -344,7 +344,7 @@ rpc_info_open(struct inode *inode, struct file *file) mutex_lock(&inode->i_mutex); clnt = RPC_I(inode)->private; if (clnt) { - atomic_inc(&clnt->cl_users); + kref_get(&clnt->cl_kref); m->private = clnt; } else { single_release(inode, file); |