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-08-25 06:29:16 +00:00
2006-09-17 13:29:36 +00:00
2005-12-04 02:12:43 +00:00
2006-07-17 21:00:42 +00:00
2006-05-28 22:15:28 +00:00
2006-08-20 10:29:08 +00:00
2006-09-17 13:29:36 +00:00
2006-08-28 04:28:25 +00:00
2006-08-13 23:16:59 +00:00