Skip to content

Commit a81da65

Browse files
sprasad-microsoftsmfrench
authored andcommitted
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: a05885c ("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>
1 parent d0cbe56 commit a81da65

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/cifs/connect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ cifs_readv_from_socket(struct TCP_Server_Info *server, struct msghdr *smb_msg)
639639

640640
if (server->tcpStatus == CifsNeedReconnect) {
641641
spin_unlock(&cifs_tcp_ses_lock);
642+
cifs_reconnect(server, false);
642643
return -ECONNABORTED;
643644
}
644645
spin_unlock(&cifs_tcp_ses_lock);

0 commit comments

Comments
 (0)