SUNRPC/backchanel: set XPT_CONG_CTRL flag for bc xprt
authorKinglong Mee <kinglongmee@gmail.com>
Tue, 7 Mar 2017 09:22:43 +0000 (17:22 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 9 Mar 2017 20:20:46 +0000 (15:20 -0500)
commit5427290d64c752b97d6a2af7506771c7d10eb750
tree210b370c730026e7436aad82646b1f17f5a387be
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
SUNRPC/backchanel: set XPT_CONG_CTRL flag for bc xprt

The xprt for backchannel is created separately, not in TCP/UDP code.  It
needs the XPT_CONG_CTRL flag set on it too--otherwise requests on the
NFSv4.1 backchannel are rjected in svc_process_common():

1191         if (versp->vs_need_cong_ctrl &&
1192             !test_bit(XPT_CONG_CTRL, &rqstp->rq_xprt->xpt_flags))
1193                 goto err_bad_vers;

Fixes: 5283b03ee5 ("nfs/nfsd/sunrpc: enforce transport...")
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svcsock.c