Module Name: src Committed By: pooka Date: Wed Apr 28 16:34:25 UTC 2010
Modified Files: src/sys/rump/librump/rumpkern: vm.c Log Message: Instead of causing a catastrophic failure when uvm_loanuobjpages() is called, just pretend it hit a wired page and return EBUSY. This should cause callers to use a non-loaning access path instead. Fixes file read path of stock nfs kernel module (previously it was easy to just frob the nfsd_use_loan boolean into the other position by simple value assingment, but now that nfsserver can be autoloaded at runtime into the rump kernel, that approach is a little more challenging since the variable isn't available in application linkage. yes, things like adding a sysctl for the variable would work, but now everything works out-of-the-box). To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/rump/librump/rumpkern/vm.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/rump/librump/rumpkern/vm.c diff -u src/sys/rump/librump/rumpkern/vm.c:1.71 src/sys/rump/librump/rumpkern/vm.c:1.72 --- src/sys/rump/librump/rumpkern/vm.c:1.71 Wed Apr 21 16:16:31 2010 +++ src/sys/rump/librump/rumpkern/vm.c Wed Apr 28 16:34:25 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: vm.c,v 1.71 2010/04/21 16:16:31 pooka Exp $ */ +/* $NetBSD: vm.c,v 1.72 2010/04/28 16:34:25 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.71 2010/04/21 16:16:31 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.72 2010/04/28 16:34:25 pooka Exp $"); #include <sys/param.h> #include <sys/atomic.h> @@ -508,7 +508,7 @@ struct vm_page **opp) { - panic("%s: unimplemented", __func__); + return EBUSY; } void