diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2014-03-24 07:59:46 +0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-03-30 18:47:36 +0400 |
commit | d531c008d7d9713456abe3d265fc577bba2e1cef (patch) | |
tree | eea8a68155e98ba647ba006d24df0efd3ecf3a49 /net/sunrpc/xprt.c | |
parent | 83ddfebdd21da669918d7f9854fd592858625f4b (diff) | |
download | linux-d531c008d7d9713456abe3d265fc577bba2e1cef.tar.xz |
NFSD/SUNRPC: Check rpc_xprt out of xs_setup_bc_tcp
Besides checking rpc_xprt out of xs_setup_bc_tcp,
increase it's reference (it's important).
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/xprt.c')
-rw-r--r-- | net/sunrpc/xprt.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index 7d4df99f761f..d173f79947c6 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c @@ -1383,15 +1383,3 @@ void xprt_put(struct rpc_xprt *xprt) if (atomic_dec_and_test(&xprt->count)) xprt_destroy(xprt); } - -/** - * xprt_get - return a reference to an RPC transport. - * @xprt: pointer to the transport - * - */ -struct rpc_xprt *xprt_get(struct rpc_xprt *xprt) -{ - if (atomic_inc_not_zero(&xprt->count)) - return xprt; - return NULL; -} |