]> Git Repo - linux.git/commit
sunrpc: handle -ENOTCONN in xs_tcp_setup_socket()
authorNeilBrown <[email protected]>
Wed, 9 Oct 2024 05:28:06 +0000 (16:28 +1100)
committerAnna Schumaker <[email protected]>
Mon, 4 Nov 2024 15:24:18 +0000 (10:24 -0500)
commit10f0740234f0b157b41bdc7e9c3555a9b86c1599
treed865b60b49c297de90ccfda1dfda9862a0ecd7e2
parent59b723cd2adbac2a34fc8e12c74ae26ae45bf230
sunrpc: handle -ENOTCONN in xs_tcp_setup_socket()

xs_tcp_finish_connecting() can return -ENOTCONN but the switch statement
in xs_tcp_setup_socket() treats that as an unhandled error.

If we treat it as a known error it would propagate back to
call_connect_status() which does handle that error code.  This appears
to be the intention of the commit (given below) which added -ENOTCONN as
a return status for xs_tcp_finish_connecting().

So add -ENOTCONN to the switch statement as an error to pass through to
the caller.

Link: https://bugzilla.suse.com/show_bug.cgi?id=1231050
Link: https://access.redhat.com/discussions/3434091
Fixes: 01d37c428ae0 ("SUNRPC: xprt_connect() don't abort the task if the transport isn't bound")
Signed-off-by: NeilBrown <[email protected]>
Reviewed-by: Benjamin Coddington <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
net/sunrpc/xprtsock.c
This page took 0.054353 seconds and 4 git commands to generate.