]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: helper function to check replayable error codes
authorShyam Prasad N <sprasad@microsoft.com>
Sun, 21 Jan 2024 03:32:46 +0000 (03:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:49 +0000 (13:34 +0100)
commitf642fcf3f7e654b90c9dee8b2012f695d0edae28
tree74f2af10cf89162758e65a5d0f629a612088da25
parentc09de6bb3ada8c3736a082b7fd7649f8ad4545b6
cifs: helper function to check replayable error codes

[ Upstream commit 64cc377b7628b81ffdbdb1c6bacfba895dcac3f8 ]

The code to check for replay is not just -EAGAIN. In some
cases, the send request or receive response may result in
network errors, which we're now mapping to -ECONNABORTED.

This change introduces a helper function which checks
if the error returned in one of the above two errors.
And all checks for replays will now use this helper.

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/cached_dir.c
fs/smb/client/cifsglob.h