diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2018-12-24 14:45:04 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-12-27 21:01:41 -0500 |
commit | a289ce5311f406bf846614591300a948ebc42062 (patch) | |
tree | 52672e4111d17511c4b8f7c3beb7f804e790decc /net/sunrpc/svcsock.c | |
parent | d4b09acf924b84bae77cad090a9d108e70b43643 (diff) | |
download | talos-obmc-linux-a289ce5311f406bf846614591300a948ebc42062.tar.gz talos-obmc-linux-a289ce5311f406bf846614591300a948ebc42062.zip |
sunrpc: replace svc_serv->sv_bc_xprt by boolean flag
svc_serv-> sv_bc_xprt is netns-unsafe and cannot be used as pointer.
To prevent its misuse in future it is replaced by new boolean flag.
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svcsock.c')
-rw-r--r-- | net/sunrpc/svcsock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index 793149ba1bda..8ce181ecb627 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c @@ -1623,8 +1623,6 @@ static struct svc_xprt *svc_bc_create_socket(struct svc_serv *serv, svc_xprt_init(net, &svc_tcp_bc_class, xprt, serv); set_bit(XPT_CONG_CTRL, &svsk->sk_xprt.xpt_flags); - serv->sv_bc_xprt = xprt; - return xprt; } |