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

Suleiman Souhlal ssouhlal at FreeBSD.org
Sat Aug 6 01:50:09 GMT 2005


On Aug 6, 2005, at 3:42 AM, Suleiman Souhlal wrote:

> 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@

Err, this should be Reported by: kris@

--
Suleiman Souhlal     | ssouhlal at vt.edu
The FreeBSD Project  | ssouhlal at FreeBSD.org



More information about the cvs-src mailing list