Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/uvm Pull up revision 1.38 (requested by enami in ti...



details:   https://anonhg.NetBSD.org/src/rev/a4040a56f36c
branches:  netbsd-1-6
changeset: 527674:a4040a56f36c
user:      tv <tv%NetBSD.org@localhost>
date:      Sat Jun 01 22:43:35 2002 +0000

description:
Pull up revision 1.38 (requested by enami in ticket #114):
Add missing pageq lock while uvm_pagefree() is called (either directly
or indirectly).  Reviewed by chuq.

diffstat:

 sys/uvm/uvm_loan.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r c0fefb78b63a -r a4040a56f36c sys/uvm/uvm_loan.c
--- a/sys/uvm/uvm_loan.c        Sat Jun 01 22:43:21 2002 +0000
+++ b/sys/uvm/uvm_loan.c        Sat Jun 01 22:43:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_loan.c,v 1.37 2002/05/07 02:29:52 enami Exp $      */
+/*     $NetBSD: uvm_loan.c,v 1.37.4.1 2002/06/01 22:43:35 tv Exp $     */
 
 /*
  *
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_loan.c,v 1.37 2002/05/07 02:29:52 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_loan.c,v 1.37.4.1 2002/06/01 22:43:35 tv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -523,7 +523,9 @@
                                wakeup(pg);
                        }
                        if (pg->flags & PG_RELEASED) {
+                               uvm_lock_pageq();
                                uvm_pagefree(pg);
+                               uvm_unlock_pageq();
                                return (0);
                        }
                        uvm_lock_pageq();



Home | Main Index | Thread Index | Old Index