]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC:
authorssouhlal <ssouhlal@FreeBSD.org>
Mon, 15 Aug 2005 06:01:36 +0000 (06:01 +0000)
committerssouhlal <ssouhlal@FreeBSD.org>
Mon, 15 Aug 2005 06:01:36 +0000 (06:01 +0000)
commitdefd68621287fd33c629747825c91585a9cca3aa
treed5c4fec5d7695f593dc6885617ebff66f47952b7
parent3fe0825ea6014bc39f8e1e5dd7828784885bed55
MFC:
  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.

Approved by: re (kensmith)
sys/kern/vfs_subr.c
sys/sys/mount.h
sys/sys/vnode.h