]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: translate network errors on send to -ECONNABORTED
authorShyam Prasad N <sprasad@microsoft.com>
Sun, 21 Jan 2024 03:32:45 +0000 (03:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:49 +0000 (13:34 +0100)
commitc09de6bb3ada8c3736a082b7fd7649f8ad4545b6
treee15df215d1e3e8735248f26e61bfc65ba64ce81b
parent59e04d39fc2998ad1eb6eef2e7fed84d98143bbe
cifs: translate network errors on send to -ECONNABORTED

[ Upstream commit a68106a6928e0a6680f12bcc7338c0dddcfe4d11 ]

When the network stack returns various errors, we today bubble
up the error to the user (in case of soft mounts).

This change translates all network errors except -EINTR and
-EAGAIN to -ECONNABORTED. A similar approach is taken when
we receive network errors when reading from the socket.

The change also forces the cifsd thread to reconnect during
it's next activity.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/transport.c