]> git.itanic.dy.fi Git - linux-stable/commit
smb3: fix problem remounting a share after shutdown
authorSteve French <stfrench@microsoft.com>
Tue, 9 May 2023 06:37:19 +0000 (01:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:50:23 +0000 (11:50 +0200)
commitc3a0ae5259ea10dcd10b7a83805bd7ca27cf3bd7
treeace4b300aadfa26f765ee5f7cfde188ac4b27591
parent17ad86d8c12220de97e80d88b5b4c934a40e1812
smb3: fix problem remounting a share after shutdown

commit 716a3cf317456fa01d54398bb14ab354f50ed6a2 upstream.

xfstests generic/392 showed a problem where even after a
shutdown call was made on a mount, we would still attempt
to use the (now inaccessible) superblock if another mount
was attempted for the same share.

Reported-by: David Howells <dhowells@redhat.com>
Reviewed-by: David Howells <dhowells@redhat.com>
Cc: <stable@vger.kernel.org>
Fixes: 087f757b0129 ("cifs: add shutdown support")
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/connect.c