Konstantin Belousov 4dec8579bd 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
2006-09-18 15:35:22 +00:00
..
2006-09-17 13:29:36 +00:00
2006-09-15 10:44:55 +00:00
2006-05-26 13:54:27 +00:00
2006-09-15 11:01:23 +00:00
2006-09-03 22:24:08 +00:00