diff options
author | Paulo Alcantara <palcantara@suse.de> | 2018-11-14 17:16:44 -0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-12-28 10:13:11 -0600 |
commit | e511d31753e3f7c13bbd402399ffac676d451a7c (patch) | |
tree | f7a8ad1f200b817b8042e4b41425fb565f1df339 /fs | |
parent | 2f0a617448945a2c63d68983212302e9f2f8ae2f (diff) | |
download | linux-e511d31753e3f7c13bbd402399ffac676d451a7c.tar.bz2 |
cifs: start DFS cache refresher in cifs_mount()
Start the DFS cache refresh worker per volume during cifs mount.
Signed-off-by: Paulo Alcantara <palcantara@suse.de>
Reviewed-by: Aurelien Aptel <aaptel@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/connect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 8de2173efdc5..ec2498f6773e 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -4594,6 +4594,11 @@ int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *vol) } spin_unlock(&cifs_tcp_ses_lock); + rc = dfs_cache_add_vol(vol, cifs_sb->origin_fullpath); + if (rc) { + kfree(cifs_sb->origin_fullpath); + goto error; + } /* * After reconnecting to a different server, unique ids won't * match anymore, so we disable serverino. This prevents @@ -4836,6 +4841,7 @@ cifs_umount(struct cifs_sb_info *cifs_sb) kfree(cifs_sb->mountdata); kfree(cifs_sb->prepath); #ifdef CONFIG_CIFS_DFS_UPCALL + dfs_cache_del_vol(cifs_sb->origin_fullpath); kfree(cifs_sb->origin_fullpath); #endif call_rcu(&cifs_sb->rcu, delayed_free); |