diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2022-06-06 11:17:56 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-06-23 02:51:43 +0200 |
commit | 6e1c1c08cdf3d7d7b8c571c0f032a283af6ca024 (patch) | |
tree | 6ee1a07b667229231b055c0225d3f7e28cbc9cc5 /fs/cifs/cifsproto.h | |
parent | cifs: during reconnect, update interface if necessary (diff) | |
download | linux-6e1c1c08cdf3d7d7b8c571c0f032a283af6ca024.tar.xz 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/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 00c4a8aa2649..d59aebefa71c 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -641,6 +641,8 @@ cifs_chan_is_iface_active(struct cifs_ses *ses, struct TCP_Server_Info *server); int cifs_chan_update_iface(struct cifs_ses *ses, struct TCP_Server_Info *server); +int +SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon); void extract_unc_hostname(const char *unc, const char **h, size_t *len); int copy_path_name(char *dst, const char *src); |