summaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@manguebit.com>2025-03-17 16:39:22 -0300
committerSteve French <stfrench@microsoft.com>2025-03-17 17:33:13 -0500
commit7643dbd9db09fffebb4a62cd27599f17f4148b17 (patch)
tree53a3acc29d35d2ca5692fcf1723872660f27d0d4 /net/lapb/lapb_timer.c
parent4701f33a10702d5fc577c32434eb62adde0a1ae1 (diff)
downloadlinux-7643dbd9db09fffebb4a62cd27599f17f4148b17.tar.gz
linux-7643dbd9db09fffebb4a62cd27599f17f4148b17.tar.bz2
linux-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 <dhowells@redhat.com> Reported-by: Jay Shin <jaeshin@redhat.com> Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions