kernel: Properly lock dounmount()
authorFrançois Tigeot <ftigeot@wolfpond.org>
Wed, 6 Feb 2013 08:11:04 +0000 (09:11 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 9 Feb 2013 15:24:40 +0000 (16:24 +0100)
commiteffb40c8d1ffed9a461d4136a276566af7e29aaa
treef9660e5f3926851e80bf3ca005116aa730dba58e
parentc23558707b661927eeb5de4d7abe2d7a7960e7d2
kernel: Properly lock dounmount()

* dounmount() wasn't properly locked, make it grab the mntvnode_token

* It is necessary to synchronize against insmntque() clearing the vnode
  linkage

* This commit fixes issue #2506

Thanks to vsrinivas for directions
sys/kern/vfs_syscalls.c