Commit 3bcb39b
Al Viro
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: Al Viro <viro@zeniv.linux.org.uk>1 parent 4ab5260 commit 3bcb39b
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1739 | 1739 | | |
1740 | 1740 | | |
1741 | 1741 | | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
1742 | 1752 | | |
1743 | 1753 | | |
1744 | 1754 | | |
| |||
1790 | 1800 | | |
1791 | 1801 | | |
1792 | 1802 | | |
1793 | | - | |
| 1803 | + | |
1794 | 1804 | | |
1795 | 1805 | | |
1796 | 1806 | | |
| |||
0 commit comments