linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] SUNRPC/backchanel: set XPT_CONG_CTRL flag for bc xprt
@ 2017-03-07  9:22 Kinglong Mee
  2017-03-07 11:11 ` Jeff Layton
  0 siblings, 1 reply; 6+ messages in thread
From: Kinglong Mee @ 2017-03-07  9:22 UTC (permalink / raw)
  To: Trond Myklebust, linux-nfs@vger.kernel.org
  Cc: J. Bruce Fields, Kinglong Mee, Anna Schumaker, Jeff Layton

The xprt for backchannel is created separately, not in TCP/UDP code.
Because without the flags, the requests from NFSv41 backchannel are
rejected 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>
---
 net/sunrpc/svcsock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index 8931e33..2b720fa 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -1635,6 +1635,7 @@ static struct svc_xprt *svc_bc_create_socket(struct svc_serv *serv,
 
 	xprt = &svsk->sk_xprt;
 	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;
 
-- 
2.9.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-04-01  1:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-07  9:22 [PATCH] SUNRPC/backchanel: set XPT_CONG_CTRL flag for bc xprt Kinglong Mee
2017-03-07 11:11 ` Jeff Layton
2017-03-09 20:26   ` J. Bruce Fields
2017-03-10 21:29     ` Benjamin Coddington
2017-03-31 20:44     ` Olga Kornievskaia
2017-04-01  1:07       ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).