diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2014-03-23 23:59:46 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-03-30 10:47:36 -0400 |
commit | d531c008d7d9713456abe3d265fc577bba2e1cef (patch) | |
tree | eea8a68155e98ba647ba006d24df0efd3ecf3a49 /net/sunrpc/xprtsock.c | |
parent | 83ddfebdd21da669918d7f9854fd592858625f4b (diff) |
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/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 63ae657f255b..1335239217cd 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -2923,15 +2923,6 @@ static struct rpc_xprt *xs_setup_bc_tcp(struct xprt_create *args) | |||
2923 | struct svc_sock *bc_sock; | 2923 | struct svc_sock *bc_sock; |
2924 | struct rpc_xprt *ret; | 2924 | struct rpc_xprt *ret; |
2925 | 2925 | ||
2926 | if (args->bc_xprt->xpt_bc_xprt) { | ||
2927 | /* | ||
2928 | * This server connection already has a backchannel | ||
2929 | * transport; we can't create a new one, as we wouldn't | ||
2930 | * be able to match replies based on xid any more. So, | ||
2931 | * reuse the already-existing one: | ||
2932 | */ | ||
2933 | return args->bc_xprt->xpt_bc_xprt; | ||
2934 | } | ||
2935 | xprt = xs_setup_xprt(args, xprt_tcp_slot_table_entries, | 2926 | xprt = xs_setup_xprt(args, xprt_tcp_slot_table_entries, |
2936 | xprt_tcp_slot_table_entries); | 2927 | xprt_tcp_slot_table_entries); |
2937 | if (IS_ERR(xprt)) | 2928 | if (IS_ERR(xprt)) |