Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2006 15:35:22 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern vfs_mount.c
Message-ID:  <200609181535.k8IFZMUO010514@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609181535.k8IFZMUO010514>