Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/sys/rump/librump/rumpvfs Apply patch, requested by chs in...



details:   https://anonhg.NetBSD.org/src/rev/883287742a22
branches:  netbsd-9
changeset: 984473:883287742a22
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jul 09 17:51:17 2021 +0000

description:
Apply patch, requested by chs in ticket #1321:

        sys/rump/librump/rumpvfs/vm_vfs.c               (apply patch)

Adapt the changes from ticket #1317 (the uvm_pageqlock does not exist any
more in HEAD)

diffstat:

 sys/rump/librump/rumpvfs/vm_vfs.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 8703ee57b6d2 -r 883287742a22 sys/rump/librump/rumpvfs/vm_vfs.c
--- a/sys/rump/librump/rumpvfs/vm_vfs.c Thu Jul 08 11:24:41 2021 +0000
+++ b/sys/rump/librump/rumpvfs/vm_vfs.c Fri Jul 09 17:51:17 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_vfs.c,v 1.34.34.1 2021/07/06 04:22:34 martin Exp $  */
+/*     $NetBSD: vm_vfs.c,v 1.34.34.2 2021/07/09 17:51:17 martin Exp $  */
 
 /*
  * Copyright (c) 2008-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_vfs.c,v 1.34.34.1 2021/07/06 04:22:34 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_vfs.c,v 1.34.34.2 2021/07/09 17:51:17 martin Exp $");
 
 #include <sys/param.h>
 
@@ -44,6 +44,7 @@
        int i;
 
        mutex_enter(uobj->vmobjlock);
+       mutex_enter(&uvm_pageqlock);
        for (i = 0; i < npages; i++) {
                pg = pgs[i];
                KASSERT((pg->flags & PG_PAGEOUT) == 0 ||
@@ -59,6 +60,7 @@
 
        }
        uvm_page_unbusy(pgs, npages);
+       mutex_exit(&uvm_pageqlock);
        mutex_exit(uobj->vmobjlock);
 }
 



Home | Main Index | Thread Index | Old Index