netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Avoid hang when mounting xprtsec=[m]tls
@ 2025-05-21 20:34 cel
  2025-05-21 20:34 ` [PATCH v2 1/2] SUNRPC: Prevent hang on NFS mount with xprtsec=[m]tls cel
  2025-05-21 20:34 ` [PATCH v2 2/2] SUNRPC: Remove dead code from xs_tcp_tls_setup_socket() cel
  0 siblings, 2 replies; 3+ messages in thread
From: cel @ 2025-05-21 20:34 UTC (permalink / raw)
  To: Trond Myklebust, Anna Schumaker
  Cc: Mike Snitzer, Thomas Haynes, linux-nfs, netdev,
	kernel-tls-handshake, Chuck Lever

From: Chuck Lever <chuck.lever@oracle.com>

An NFS mount request can sometimes hang when TLS is requested.
This series attempts to address that.

I've checked on a couple of things since v1.

 - Why doesn't the Linux kernel SunRPC client already poll just
   after connecting? Typically the SunRPC client does not expect
   an RPC Reply (ie, any ingress traffic) until it has sent an RPC
   Call first. RPC-with-TLS has changed that scenario a bit.

 - Is this an issue for other in-kernel TLS consumers? It is. But
   the only other in-kernel TLS consumer at the moment is NVMe over
   TCP, and it already polls after a successful connection, for
   other reasons.

Changes since v1:
- Include Mike's R-b and T-b tags in 1/2
- Clean up dead code noticed while testing

Chuck Lever (2):
  SUNRPC: Prevent hang on NFS mount with xprtsec=[m]tls
  SUNRPC: Remove dead code from xs_tcp_tls_setup_socket()

 net/sunrpc/xprtsock.c | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-05-21 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-21 20:34 [PATCH v2 0/2] Avoid hang when mounting xprtsec=[m]tls cel
2025-05-21 20:34 ` [PATCH v2 1/2] SUNRPC: Prevent hang on NFS mount with xprtsec=[m]tls cel
2025-05-21 20:34 ` [PATCH v2 2/2] SUNRPC: Remove dead code from xs_tcp_tls_setup_socket() cel

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).