Skip to content
Commit 261bca86 authored by Al Viro's avatar Al Viro
Browse files

nfsd/create race fixes, infrastructure



new helpers - insert_inode_locked() and insert_inode_locked4().
Hash new inode, making sure that there's no such inode in icache
already.  If there is and it does not end up unhashed (as would
happen if we have nfsd trying to resolve a bogus fhandle), fail.
Otherwise insert our inode into hash and succeed.

In either case have i_state set to new+locked; cleanup ends up
being simpler with such calling conventions.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 272eb014
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment