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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent d0cbe56 commit a81da65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)