Module Name:    src
Committed By:   yamt
Date:           Tue Jun 12 17:12:01 UTC 2012

Modified Files:
        src/sys/uvm [yamt-pagecache]: uvm_loan.c

Log Message:
as usefulness of O->A loaning is unclear, disable it by default for now.

requested by rmind.
http://mail-index.NetBSD.org/tech-kern/2012/05/08/msg013139.html


To generate a diff of this commit:
cvs rdiff -u -r1.81.2.16 -r1.81.2.17 src/sys/uvm/uvm_loan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_loan.c
diff -u src/sys/uvm/uvm_loan.c:1.81.2.16 src/sys/uvm/uvm_loan.c:1.81.2.17
--- src/sys/uvm/uvm_loan.c:1.81.2.16	Tue Apr 17 00:08:59 2012
+++ src/sys/uvm/uvm_loan.c	Tue Jun 12 17:12:01 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_loan.c,v 1.81.2.16 2012/04/17 00:08:59 yamt Exp $	*/
+/*	$NetBSD: uvm_loan.c,v 1.81.2.17 2012/06/12 17:12:01 yamt Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_loan.c,v 1.81.2.16 2012/04/17 00:08:59 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_loan.c,v 1.81.2.17 2012/06/12 17:12:01 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -42,7 +42,7 @@ __KERNEL_RCSID(0, "$NetBSD: uvm_loan.c,v
 
 #include <uvm/uvm.h>
 
-int vm_loan_read_thresh = MAXPHYS;
+int vm_loan_read_thresh = -1;
 
 /*
  * "loaned" pages are pages which are (read-only, copy-on-write) loaned
@@ -1303,7 +1303,7 @@ uvm_loanobj(struct uvm_object *uobj, str
 	size_t len;
 	int i, error = 0;
 
-	if (vm_loan_read_thresh > 0 && uio->uio_resid < vm_loan_read_thresh) {
+	if (vm_loan_read_thresh < 0 || uio->uio_resid < vm_loan_read_thresh) {
 		return ENOSYS;
 	}
 

Reply via email to