cvs commit: src/sys/kern vfs_mount.c
Konstantin Belousov
kib at FreeBSD.org
Mon Sep 18 08:35:27 PDT 2006
kib 2006-09-18 15:35:22 UTC
FreeBSD src repository
Modified files:
sys/kern vfs_mount.c
Log:
Fix the race while waiting for coveredvp lock during unmount. The vnode may
be recycled during the sleep, wrap the vn_lock with vhold/vdrop.
Check that coveredvp still points to the same mp after sleep (needed
because sleep dropped Giant).
Move check for user rights for unmount after coveredvp lock is obtained.
Tested by: Peter Holm
Reviewed by: tegge
Approved by: kan (mentor)
MFC after: 2 weeks
Revision Changes Path
1.232 +26 -12 src/sys/kern/vfs_mount.c
More information about the cvs-src
mailing list