freebsd-skq/sys/fs/nullfs
Semen Ustimenko 1cfdefbb9f Fix a race during null node creation between relookuping the hash and
adding vnode to hash. The fix is to use atomic hash-lookup-and-add-if-
not-found operation. The odd thing is that this race can't happen
actually because the lowervp vnode is locked exclusively now during the
whole process of null node creation. This must be thought as a step
toward shared lookups.

Also remove vp->v_mount checks when looking for a match in the hash,
as this is the vestige.

Also add comments and cosmetic changes.
2002-06-13 21:49:09 +00:00
..
null_subr.c Fix a race during null node creation between relookuping the hash and 2002-06-13 21:49:09 +00:00
null_vfsops.c Fix a race during null node creation between relookuping the hash and 2002-06-13 21:49:09 +00:00
null_vnops.c Fix a race during null node creation between relookuping the hash and 2002-06-13 21:49:09 +00:00
null.h Fix a race during null node creation between relookuping the hash and 2002-06-13 21:49:09 +00:00