diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-11-19 15:51:15 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-12-09 19:21:21 +0300 |
commit | 7501cc2bcf9a71cc1f19e38775c234815ee44578 (patch) | |
tree | cd60b136d4912a98a5efa722e4028bf5c3a29551 /net/sunrpc | |
parent | 4d152e2c9a6a3e3556ce5da7782a9e2836edbe0f (diff) | |
download | linux-7501cc2bcf9a71cc1f19e38775c234815ee44578.tar.xz |
sunrpc: move rq_local field to rq_flags
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/svcsock.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index f9c052d508f0..cc331b6cf573 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c @@ -1145,7 +1145,10 @@ static int svc_tcp_recvfrom(struct svc_rqst *rqstp) rqstp->rq_xprt_ctxt = NULL; rqstp->rq_prot = IPPROTO_TCP; - rqstp->rq_local = !!test_bit(XPT_LOCAL, &svsk->sk_xprt.xpt_flags); + if (test_bit(XPT_LOCAL, &svsk->sk_xprt.xpt_flags)) + set_bit(RQ_LOCAL, &rqstp->rq_flags); + else + clear_bit(RQ_LOCAL, &rqstp->rq_flags); p = (__be32 *)rqstp->rq_arg.head[0].iov_base; calldir = p[1]; |