aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorPaulo Alcantara <[email protected]>2025-03-17 19:39:22 +0000
committerSteve French <[email protected]>2025-03-17 22:33:13 +0000
commit7643dbd9db09fffebb4a62cd27599f17f4148b17 (patch)
tree53a3acc29d35d2ca5692fcf1723872660f27d0d4 /rust/helpers/helpers.c
parentLinux 6.14-rc7 (diff)
downloadkernel-7643dbd9db09fffebb4a62cd27599f17f4148b17.tar.gz
kernel-7643dbd9db09fffebb4a62cd27599f17f4148b17.zip
smb: client: don't retry IO on failed negprotos with soft mounts
If @server->tcpStatus is set to CifsNeedReconnect after acquiring @ses->session_mutex in smb2_reconnect() or cifs_reconnect_tcon(), it means that a concurrent thread failed to negotiate, in which case the server is no longer responding to any SMB requests, so there is no point making the caller retry the IO by returning -EAGAIN. Fix this by returning -EHOSTDOWN to the callers on soft mounts. Cc: David Howells <[email protected]> Reported-by: Jay Shin <[email protected]> Signed-off-by: Paulo Alcantara (Red Hat) <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions