]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix reconnect on smb3 mount types
authorPaulo Alcantara <pc@cjr.nz>
Sun, 5 Jun 2022 22:54:26 +0000 (19:54 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 6 Jun 2022 06:04:12 +0000 (01:04 -0500)
commitdda13fb40c994b9c0e8ac05eecaaa6b45e1a7fd2
treef07cd87bcd742cca2f71017c520af00a04f474c3
parentcf1710d1388cf5bd81996b258399c4907d27006e
cifs: fix reconnect on smb3 mount types

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: Satadru Pramanik <satadru@gmail.com>
Reported-by: Satadru Pramanik <satadru@gmail.com>
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c
fs/cifs/cifsfs.h
fs/cifs/misc.c