svn commit: r256590 - stable/9/sys/kern

Konstantin Belousov kib at FreeBSD.org
Wed Oct 16 06:13:09 UTC 2013


Author: kib
Date: Wed Oct 16 06:13:08 2013
New Revision: 256590
URL: http://svnweb.freebsd.org/changeset/base/256590

Log:
  MFC r256211:
  Do not flush buffers when the v_object of the passed vnode does not
  really belong to it.

Modified:
  stable/9/sys/kern/vfs_subr.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/vfs_subr.c
==============================================================================
--- stable/9/sys/kern/vfs_subr.c	Wed Oct 16 06:07:03 2013	(r256589)
+++ stable/9/sys/kern/vfs_subr.c	Wed Oct 16 06:13:08 2013	(r256590)
@@ -1304,6 +1304,8 @@ vinvalbuf(struct vnode *vp, int flags, i
 
 	CTR3(KTR_VFS, "%s: vp %p with flags %d", __func__, vp, flags);
 	ASSERT_VOP_LOCKED(vp, "vinvalbuf");
+	if (vp->v_object != NULL && vp->v_object->handle != vp)
+		return (0);
 	return (bufobj_invalbuf(&vp->v_bufobj, flags, slpflag, slptimeo));
 }
 


More information about the svn-src-stable-9 mailing list