Commit 56a09894 authored by Paulo Alcantara's avatar Paulo Alcantara Committed by Zheng Zengkai
Browse files

cifs: fix reconnect on smb3 mount types

stable inclusion
from stable-v5.10.122
commit 471a41320170be3404822ce98d63b53d6e136d6f
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5W6OE

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=471a41320170be3404822ce98d63b53d6e136d6f

--------------------------------

commit c36ee7da upstream.

cifs.ko defines two file system types: cifs & smb3, and
__cifs_get_super() was not including smb3 file system type when
looking up superblocks, therefore failing to reconnect tcons in
cifs_tree_connect().

Fix this by calling iterate_supers_type() on both file system types.

Link: https://lore.kernel.org/r/CAFrh3J9soC36+BVuwHB=g9z_KB5Og2+p2_W+BBoBOZveErz14w@mail.gmail.com


Cc: stable@vger.kernel.org
Tested-by: default avatarSatadru Pramanik <satadru@gmail.com>
Reported-by: default avatarSatadru Pramanik <satadru@gmail.com>
Signed-off-by: default avatarPaulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent 78f938bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment