summaryrefslogtreecommitdiff
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorPaulo Alcantara <palcantara@suse.de>2018-11-14 17:13:25 -0200
committerSteve French <stfrench@microsoft.com>2018-12-28 10:13:11 -0600
commit93d5cb517db39e8af8d1292f9e785e4983b7f708 (patch)
treeda84893e19fdc2d854d5983b7d54b7b2ce552baa /fs/cifs/cifsglob.h
parent4a367dc0443566f87d73f2cdb94703b0e1374315 (diff)
downloadlwn-93d5cb517db39e8af8d1292f9e785e4983b7f708.tar.gz
lwn-93d5cb517db39e8af8d1292f9e785e4983b7f708.zip
cifs: Add support for failover in cifs_reconnect()
After failing to reconnect to original target, it will retry any target available from DFS cache. Signed-off-by: Paulo Alcantara <palcantara@suse.de> Reviewed-by: Aurelien Aptel <aaptel@suse.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 45feb3ff7806..01ded7038b19 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -701,6 +701,13 @@ struct TCP_Server_Info {
struct delayed_work reconnect; /* reconnect workqueue job */
struct mutex reconnect_mutex; /* prevent simultaneous reconnects */
unsigned long echo_interval;
+
+ /*
+ * Number of targets available for reconnect. The more targets
+ * the more tasks have to wait to let the demultiplex thread
+ * reconnect.
+ */
+ int nr_targets;
};
static inline unsigned int