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>
This commit is contained in:

committed by
Steve French

parent
4a367dc044
commit
93d5cb517d
@@ -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
|
||||
|
Reference in New Issue
Block a user