Commit aa12118d authored by Bharath SM's avatar Bharath SM Committed by Steve French
Browse files

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: 037e1bae ("smb: client: use ParentLeaseKey in cifs_do_create")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarBharath SM <bharathsm@microsoft.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 31602533
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -329,6 +329,7 @@ static int cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned
					       parent_cfid->fid.lease_key,
					       SMB2_LEASE_KEY_SIZE);
					parent_cfid->dirents.is_valid = false;
					parent_cfid->dirents.is_failed = true;
				}
				break;
			}