Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Aug 2005 01:42:04 +0000 (UTC)
From:      Suleiman Souhlal <ssouhlal@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern vfs_subr.c src/sys/sys mount.h vnode.h
Message-ID:  <200508060142.j761g4WL038761@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ssouhlal    2005-08-06 01:42:04 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_subr.c 
    sys/sys              mount.h vnode.h 
  Log:
  Holding a vnode doesn't prevent v_mount from disappearing (when the
  vnode is inactivated), possibly leading to a NULL dereference when
  checking if the mount wants knotes to be activated in the VOP hooks.
  So, we add a new vnode flag VV_NOKNOTE that is only set in getnewvnode(),
  if necessary, and check it when activating knotes.
  Since the flags are not erased when a vnode is being held, we can safely
  read them.
  
  Reviewed by:    kris@
  MFC after:      3 days
  
  Revision  Changes    Path
  1.638     +2 -0      src/sys/kern/vfs_subr.c
  1.198     +2 -4      src/sys/sys/mount.h
  1.306     +1 -0      src/sys/sys/vnode.h



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