]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: periodically query network interfaces from server
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 6 Jun 2022 09:17:56 +0000 (09:17 +0000)
committerSteve French <stfrench@microsoft.com>
Thu, 23 Jun 2022 00:51:43 +0000 (19:51 -0500)
commit210e2def8cafa02528880273b89bf652f3146669
tree6ee1a07b667229231b055c0225d3f7e28cbc9cc5
parentaa2ff73891387be9ed78e97b1ab1e54b0bd5ce2d
cifs: periodically query network interfaces from server

Currently, we only query the server for network interfaces
information at the time of mount, and never afterwards.
This can be a problem, especially for services like Azure,
where the IP address of the channel endpoints can change
over time.

With this change, we schedule a 600s polling of this info
from the server for each tree connect.

An alternative for periodic polling was to do this only at
the time of reconnect. But this could delay the reconnect
time slightly. Also, there are some challenges w.r.t how
we have cifs_reconnect implemented today.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/smb2ops.c