cifs: call cifs_reconnect when a connection is marked
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 8 Feb 2022 19:28:28 +0000 (19:28 +0000)
committerSteve French <stfrench@microsoft.com>
Tue, 19 Apr 2022 22:25:25 +0000 (17:25 -0500)
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>
fs/cifs/connect.c

index 944a728a5e6d8932c153e16b6eb86e78c810d004..9b60d892033dc465723927430dfbd4079062f1e3 100644 (file)
@@ -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);