Skip to content

Commit 65de262

Browse files
Paulo Alcantarasmfrench
authored andcommitted
cifs: fix missed refcounting of ipc tcon
Fix missed refcounting of IPC tcon used for getting domain-based DFS root referrals. We want to keep it alive as long as mount is active and can be refreshed. For standalone DFS root referrals it wouldn't be a problem as the client ends up having an IPC tcon for both mount and cache. Fixes: c88f7dc ("cifs: support nested dfs links over reconnect") Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent d58071a commit 65de262

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/cifs/connect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3426,6 +3426,7 @@ static int connect_dfs_root(struct mount_ctx *mnt_ctx, struct dfs_cache_tgt_list
34263426
*/
34273427
mount_put_conns(mnt_ctx);
34283428
mount_get_dfs_conns(mnt_ctx);
3429+
set_root_ses(mnt_ctx);
34293430

34303431
full_path = build_unc_path_to_root(ctx, cifs_sb, true);
34313432
if (IS_ERR(full_path))

0 commit comments

Comments
 (0)