]> www.infradead.org Git - users/jedix/linux-maple.git/commit
SUNRPC: Handle -ETIMEDOUT return from tlshd
authorBenjamin Coddington <bcodding@redhat.com>
Tue, 11 Feb 2025 17:31:57 +0000 (12:31 -0500)
committerAnna Schumaker <anna.schumaker@oracle.com>
Wed, 19 Feb 2025 21:45:24 +0000 (16:45 -0500)
commit7a2f6f7687c5f7083a35317cddec5ad9fa491443
treea722a669a35e4d67d4d8b202a844ccfe4c559583
parent8f8df955f078e1a023ee55161935000a67651f38
SUNRPC: Handle -ETIMEDOUT return from tlshd

If the TLS handshake attempt returns -ETIMEDOUT, we currently translate
that error into -EACCES.  This becomes problematic for cases where the RPC
layer is attempting to re-connect in paths that don't resonably handle
-EACCES, for example: writeback.  The RPC layer can handle -ETIMEDOUT quite
well, however - so if the handshake returns this error let's just pass it
along.

Fixes: 75eb6af7acdf ("SUNRPC: Add a TCP-with-TLS RPC transport class")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
net/sunrpc/xprtsock.c