commit | 34f52e3591f241b825353ba27def956d8487c400 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Thu Jun 14 16:40:31 2007 -0400 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Tue Jul 10 23:40:28 2007 -0400 |
tree | 9f7f0cd52f206095217bd2469e31c2531cbae0a4 | |
parent | c44fe705530ff9ea5e563bf9b65bdd29defe682b [diff] [blame] |
SUNRPC: Convert rpc_clnt->cl_users to a kref Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
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 @@ 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);