cifs: auto disable 'serverino' in dfs mounts

Different servers have different set of file ids.

After failover, unique IDs will be different so we can't validate
them.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Paulo Alcantara <palcantara@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
Aurelien Aptel
2018-11-16 16:13:25 +01:00
committed by Steve French
parent d9345e0ae7
commit 5fc7fcd054
3 changed files with 35 additions and 25 deletions

View File

@@ -4220,6 +4220,12 @@ int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *vol)
if (rc)
goto error;
/*
* After reconnecting to a different server, unique ids won't
* match anymore, so we disable serverino. This prevents
* dentry revalidation to think the dentry are stale (ESTALE).
*/
cifs_autodisable_serverino(cifs_sb);
out:
free_xid(xid);
return mount_setup_tlink(cifs_sb, ses, tcon);