Skip to content
Commit 3bcb39b0 authored by Al Viro's avatar Al Viro
Browse files

cifs: have ->mkdir() handle race with another client sanely



if we have mkdir request reported successful *and* simulating lookup
gets us a non-directory (which is possible if another client has
managed to get rmdir and create in between), the sane action is not
to mangle ->i_mode of non-directory inode to S_IFDIR | mode, it's
"report success and return with dentry negative unhashed" - that
way the next lookup will do the right thing.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 4ab5260d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment