cvs commit: src/sys/kern vfs_subr.c src/sys/sys mount.h vnode.h

Suleiman Souhlal ssouhlal at FreeBSD.org
Mon Aug 15 06:01:37 GMT 2005


ssouhlal    2005-08-15 06:01:37 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/kern             vfs_subr.c 
    sys/sys              mount.h vnode.h 
  Log:
  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)
  
  Revision   Changes    Path
  1.635.2.1  +2 -0      src/sys/kern/vfs_subr.c
  1.197.2.1  +2 -4      src/sys/sys/mount.h
  1.304.2.1  +1 -0      src/sys/sys/vnode.h


More information about the cvs-src mailing list