]> www.infradead.org Git - users/dwmw2/linux.git/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:53:44 +0000 (11:53 +0200)
commitbb0091a5c97ab66a358450a89bb40b6b3fb48696
treec1561f60f0ce04256a86f6aed9ea5a5370d6b2c1
parent145f54ea336b06cf4f92eeee996f2ffca939ea43
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