]> git.hungrycats.org Git - linux/commit
smb3: request handle caching when caching directories
authorSteve French <stfrench@microsoft.com>
Mon, 18 Nov 2024 18:19:46 +0000 (12:19 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:54:23 +0000 (13:54 +0100)
commit5fa30c58dd22d08eb1694a6eed3f7ae6e60767f0
treeab36fe79572eeb57296a19cdbc0f171d1992e119
parent4f7a8d2e646aff216088a9b95a534326c7eafb20
smb3: request handle caching when caching directories

commit 9ed9d83a51a9636d367c796252409e7b2f4de4d4 upstream.

This client was only requesting READ caching, not READ and HANDLE caching
in the LeaseState on the open requests we send for directories.  To
delay closing a handle (e.g. for caching directory contents) we should
be requesting HANDLE as well as READ (as we already do for deferred
close of files).   See MS-SMB2 3.3.1.4 e.g.

Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/smb2ops.c