aboutsummaryrefslogtreecommitdiff
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
authorGravatar Shyam Prasad N <sprasad@microsoft.com> 2022-06-06 09:17:56 +0000
committerGravatar Steve French <stfrench@microsoft.com> 2022-06-22 19:51:43 -0500
commit6e1c1c08cdf3d7d7b8c571c0f032a283af6ca024 (patch)
tree6ee1a07b667229231b055c0225d3f7e28cbc9cc5 /fs/cifs/smb2ops.c
parentcifs: during reconnect, update interface if necessary (diff)
downloadlinux-6e1c1c08cdf3d7d7b8c571c0f032a283af6ca024.tar.gz
linux-6e1c1c08cdf3d7d7b8c571c0f032a283af6ca024.tar.bz2
linux-6e1c1c08cdf3d7d7b8c571c0f032a283af6ca024.zip
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>
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r--fs/cifs/smb2ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index db4ccf1d235e..8802995b2d3d 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -671,7 +671,7 @@ out:
return rc;
}
-static int
+int
SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon)
{
int rc;