summaryrefslogtreecommitdiff
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2022-02-08 19:28:28 +0000
committerSteve French <stfrench@microsoft.com>2022-02-08 13:52:39 -0600
commita81da65fbae6436e1e2f415532b8aacc3274d840 (patch)
treeac2778cb8ebac74cba727da39f411951cbe3726c /fs/cifs/connect.c
parentd0cbe56a7d5ac170f6cf3757ef5a14dd854e7da9 (diff)
cifs: call cifs_reconnect when a connection is marked
In cifsd thread, we should continue to call cifs_reconnect whenever server->tcpStatus is marked as CifsNeedReconnect. This was inexplicably removed by one of my recent commits. Fixing that here. Fixes: a05885ce13bd ("cifs: fix the connection state transitions with multichannel") Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index cff6c01feae2..5b4733eb42c7 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -639,6 +639,7 @@ cifs_readv_from_socket(struct TCP_Server_Info *server, struct msghdr *smb_msg)
if (server->tcpStatus == CifsNeedReconnect) {
spin_unlock(&cifs_tcp_ses_lock);
+ cifs_reconnect(server, false);
return -ECONNABORTED;
}
spin_unlock(&cifs_tcp_ses_lock);