cvs commit: src/sys/kern vfs_mount.c

From: Konstantin Belousov <>
Date: Mon, 18 Sep 2006 15:35:22 +0000 (UTC)
kib         2006-09-18 15:35:22 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_mount.c 
  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
Received on Mon Sep 18 2006 - 15:35:27 UTC