Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2017 01:16:54 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r313125 - in stable/11: lib/libc/sys sys/kern
Message-ID:  <201702030116.v131Gswm090133@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Feb  3 01:16:54 2017
New Revision: 313125
URL: https://svnweb.freebsd.org/changeset/base/313125

Log:
  MFC r309200:
  Launder VPO_NOSYNC pages upon vnode deactivation.

Modified:
  stable/11/lib/libc/sys/mmap.2
  stable/11/sys/kern/vfs_subr.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libc/sys/mmap.2
==============================================================================
--- stable/11/lib/libc/sys/mmap.2	Fri Feb  3 01:15:31 2017	(r313124)
+++ stable/11/lib/libc/sys/mmap.2	Fri Feb  3 01:16:54 2017	(r313125)
@@ -28,7 +28,7 @@
 .\"	@(#)mmap.2	8.4 (Berkeley) 5/11/95
 .\" $FreeBSD$
 .\"
-.Dd February 18, 2015
+.Dd November 25, 2016
 .Dt MMAP 2
 .Os
 .Sh NAME
@@ -189,6 +189,8 @@ this option any VM pages you dirty may b
 (every 30-60 seconds usually) which can create performance problems if you
 do not need that to occur (such as when you are using shared file-backed
 mmap regions for IPC purposes).
+Dirty data will be flushed automatically when all mappings of an object are
+removed and all descriptors referencing the object are closed.
 Note that VM/file system coherency is
 maintained whether you use
 .Dv MAP_NOSYNC

Modified: stable/11/sys/kern/vfs_subr.c
==============================================================================
--- stable/11/sys/kern/vfs_subr.c	Fri Feb  3 01:15:31 2017	(r313124)
+++ stable/11/sys/kern/vfs_subr.c	Fri Feb  3 01:16:54 2017	(r313125)
@@ -2948,7 +2948,7 @@ vinactive(struct vnode *vp, struct threa
 	obj = vp->v_object;
 	if (obj != NULL && (obj->flags & OBJ_MIGHTBEDIRTY) != 0) {
 		VM_OBJECT_WLOCK(obj);
-		vm_object_page_clean(obj, 0, 0, OBJPC_NOSYNC);
+		vm_object_page_clean(obj, 0, 0, 0);
 		VM_OBJECT_WUNLOCK(obj);
 	}
 	VOP_INACTIVE(vp, td);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702030116.v131Gswm090133>