Skip to content

Commit 49fe25c

Browse files
sprasad-microsoftSteve French
authored andcommitted
cifs: reschedule periodic query for server interfaces
Today, we schedule periodic query for server interfaces once every 10 minutes once a tree connection has been established. Recent change to handle disabling of multichannel disabled this delayed work. This change reenables it following a reconnect, and the server advertises multichannel. Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 66c9314 commit 49fe25c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/smb/client/smb2pdu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon,
405405
cifs_server_dbg(VFS, "supports multichannel now\n");
406406

407407
cifs_try_adding_channels(ses);
408+
queue_delayed_work(cifsiod_wq, &tcon->query_interfaces,
409+
(SMB_INTERFACE_POLL_INTERVAL * HZ));
408410
}
409411
} else {
410412
mutex_unlock(&ses->session_mutex);

0 commit comments

Comments
 (0)