svn commit: r242921 - stable/9/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Mon Nov 12 15:17:25 UTC 2012
Author: kib
Date: Mon Nov 12 15:17:25 2012
New Revision: 242921
URL: http://svnweb.freebsd.org/changeset/base/242921
Log:
MFC r242617:
A clarification to the behaviour of the active vnode list management
regarding the vnode page cleaning.
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 Mon Nov 12 14:34:46 2012 (r242920)
+++ stable/9/sys/kern/vfs_subr.c Mon Nov 12 15:17:25 2012 (r242921)
@@ -2547,6 +2547,9 @@ vinactive(struct vnode *vp, struct threa
* Before moving off the active list, we must be sure that any
* modified pages are on the vnode's dirty list since these will
* no longer be checked once the vnode is on the inactive list.
+ * Because the vnode vm object keeps a hold reference on the vnode
+ * if there is at least one resident non-cached page, the vnode
+ * cannot leave the active list without the page cleanup done.
*/
obj = vp->v_object;
if (obj != NULL && (obj->flags & OBJ_MIGHTBEDIRTY) != 0) {
More information about the svn-src-stable
mailing list