cifs: release leases for deferred close handles when freezing
authorSteve French <stfrench@microsoft.com>
Wed, 10 May 2023 22:42:21 +0000 (17:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:43 +0000 (11:53 +0200)
commitb886ad6b6bfb03da2d6a27c42ff051ba8efe70f7
treed7d67dcf231df3061938bffee2435cb2357f04f8
parent187f89cff7753614b37ab7b83a5c9d5a8e1966a0
cifs: release leases for deferred close handles when freezing

commit d39fc592ef8ae9a89c5e85c8d9f760937a57d5ba upstream.

We should not be caching closed files when freeze is invoked on an fs
(so we can release resources more gracefully).

Fixes xfstests generic/068 generic/390 generic/491

Reviewed-by: David Howells <dhowells@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/cifsfs.c