Skip to content

Commit aa12118

Browse files
bharathsm-mssmfrench
authored andcommitted
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: 037e1ba ("smb: client: use ParentLeaseKey in cifs_do_create") Cc: [email protected] Signed-off-by: Bharath SM <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 3160253 commit aa12118

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/smb/client/dir.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ static int cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned
329329
parent_cfid->fid.lease_key,
330330
SMB2_LEASE_KEY_SIZE);
331331
parent_cfid->dirents.is_valid = false;
332+
parent_cfid->dirents.is_failed = true;
332333
}
333334
break;
334335
}

0 commit comments

Comments
 (0)