]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb client: fix bug with newly created file in cached dir
authorBharath SM <bharathsm@microsoft.com>
Fri, 26 Sep 2025 15:13:50 +0000 (10:13 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Oct 2025 03:42:15 +0000 (22:42 -0500)
commitaa12118dbcfe659697567c9daa0eac2c71e3fd37
tree476ce7e0567998dacdc2eb3d756a8cc260ef17e9
parent316025335a2d41dc71c47abf6eb9a41987e94c0a
smb client: fix bug with newly created file in cached dir

Test generic/637 spotted a problem with create of a new file in a
cached directory (by the same client) could cause cases where the
new file does not show up properly in ls on that client until the
lease times out.

Fixes: 037e1bae588e ("smb: client: use ParentLeaseKey in cifs_do_create")
Cc: stable@vger.kernel.org
Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/dir.c