SUNRPC: correct error code comment in xs_tcp_setup_socket()
[ Upstream commit8c71139d9f] This comment was introduced by commit6ea44adce9("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, commit0445f92c5d("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:6ea44adce9("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> Stable-dep-of:4db9ad82a6("sunrpc: clear XPRT_SOCK_UPD_TIMEOUT when reset transport") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f69fb61c69
commit
e2730edfff
@@ -2332,10 +2332,8 @@ static void xs_tcp_setup_socket(struct work_struct *work)
|
||||
case -EHOSTUNREACH:
|
||||
case -EADDRINUSE:
|
||||
case -ENOBUFS:
|
||||
/*
|
||||
* xs_tcp_force_close() wakes tasks with -EIO.
|
||||
* We need to wake them first to ensure the
|
||||
* correct error code.
|
||||
/* xs_tcp_force_close() wakes tasks with a fixed error code.
|
||||
* We need to wake them first to ensure the correct error code.
|
||||
*/
|
||||
xprt_wake_pending_tasks(xprt, status);
|
||||
xs_tcp_force_close(xprt);
|
||||
|
||||
Reference in New Issue
Block a user