diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-11-19 13:51:15 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-12-09 17:21:21 +0100 |
commit | 7501cc2bcf9a71cc1f19e38775c234815ee44578 (patch) | |
tree | cd60b136d4912a98a5efa722e4028bf5c3a29551 /net/sunrpc/svcsock.c | |
parent | sunrpc: add a generic rq_flags field to svc_rqst and move rq_secure to it (diff) | |
download | linux-7501cc2bcf9a71cc1f19e38775c234815ee44578.tar.xz linux-7501cc2bcf9a71cc1f19e38775c234815ee44578.zip |
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/svcsock.c')
-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]; |