]> www.infradead.org Git - users/hch/dma-mapping.git/commit
smb: client: fix DFS failover in multiuser mounts
authorPaulo Alcantara <pc@manguebit.com>
Wed, 18 Sep 2024 05:04:23 +0000 (02:04 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 25 Sep 2024 02:51:48 +0000 (21:51 -0500)
commit0826b134c0b039db4850fb762e79766a45d847c5
treeadba912958c110e4318f1d1b425c10aa3a8a8e45
parent85633c00ad03049019df632f2bdcf5ff7efc7796
smb: client: fix DFS failover in multiuser mounts

For sessions and tcons created on behalf of new users accessing a
multiuser mount, matching their sessions in tcon_super_cb() with
master tcon will always lead to false as every new user will have its
own session and tcon.

All multiuser sessions, however, will inherit ->dfs_root_ses from
master tcon, so match it instead.

Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/misc.c