]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: correct error code comment in xs_tcp_setup_socket()
authorCalum Mackay <calum.mackay@oracle.com>
Sat, 24 Oct 2020 21:36:38 +0000 (22:36 +0100)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 1 Feb 2021 15:32:28 +0000 (10:32 -0500)
commit22035a22f1a26d203b3272309528e9ec5bb4e807
tree06c5560e8b8e139a9d2a748edc021bf1a53276a7
parenta5bcd1e766a4442962cb14550ab37793e515d3a2
SUNRPC: correct error code comment in xs_tcp_setup_socket()

This comment was introduced by commit 94ea6de311e1
("SUNRPC: ensure correct error is reported by xs_tcp_setup_socket()").

I believe EIO was a typo at the time: it should have been EAGAIN.

Subsequently, commit 8477615ac175 ("SUNRPC: Fix disconnection races")
changed that to ENOTCONN.

Rather than trying to keep the comment here in sync with the code in
xprt_force_disconnect(), make the point in a non-specific way.

Fixes: 94ea6de311e1 ("SUNRPC: ensure correct error is reported by xs_tcp_setup_socket()")
Signed-off-by: Calum Mackay <calum.mackay@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtsock.c