diff options
| author | Bharath SM <bharathsm@microsoft.com> | 2025-09-26 10:13:50 -0500 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-10-01 22:42:15 -0500 |
| commit | aa12118dbcfe659697567c9daa0eac2c71e3fd37 (patch) | |
| tree | 476ce7e0567998dacdc2eb3d756a8cc260ef17e9 | |
| parent | 316025335a2d41dc71c47abf6eb9a41987e94c0a (diff) | |
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>
| -rw-r--r-- | fs/smb/client/dir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/client/dir.c b/fs/smb/client/dir.c index bc145436eba4..a233a5fe377b 100644 --- a/fs/smb/client/dir.c +++ b/fs/smb/client/dir.c @@ -329,6 +329,7 @@ retry_open: parent_cfid->fid.lease_key, SMB2_LEASE_KEY_SIZE); parent_cfid->dirents.is_valid = false; + parent_cfid->dirents.is_failed = true; } break; } |
