aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/addswap
diff options
context:
space:
mode:
authorSemen Ustimenko <semenu@FreeBSD.org>2002-06-13 21:49:09 +0000
committerSemen Ustimenko <semenu@FreeBSD.org>2002-06-13 21:49:09 +0000
commit1cfdefbb9f162da9aa9c045f07394f49aaef1db8 (patch)
tree6951958eefa7c3d066580c5bb379863dacb57268 /etc/rc.d/addswap
parent9b838be73bbb4276c3e6be5d51e4f2ce65ec4035 (diff)
downloadsrc-1cfdefbb9f162da9aa9c045f07394f49aaef1db8.tar.gz
src-1cfdefbb9f162da9aa9c045f07394f49aaef1db8.zip
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.
Notes
Notes: svn path=/head/; revision=98183
Diffstat (limited to 'etc/rc.d/addswap')
0 files changed, 0 insertions, 0 deletions