Date: Sat, 6 Aug 2005 03:49:53 +0200 From: Suleiman Souhlal <ssouhlal@FreeBSD.org> To: Suleiman Souhlal <ssouhlal@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern vfs_subr.c src/sys/sys mount.h vnode.h Message-ID: <518A155E-C0F3-4582-A122-724A8CA76FBC@FreeBSD.org> In-Reply-To: <200508060142.j761g4WL038761@repoman.freebsd.org> References: <200508060142.j761g4WL038761@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@vt.edu The FreeBSD Project | ssouhlal@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?518A155E-C0F3-4582-A122-724A8CA76FBC>