Module Name: src Committed By: christos Date: Sun Feb 1 16:26:01 UTC 2015
Modified Files: src/sys/uvm: uvm_map.c Log Message: The diagnostic function uvm_km_check_empty() takes a mutex, so don't call it if we are using UVM_FLAG_NOWAIT. To generate a diff of this commit: cvs rdiff -u -r1.332 -r1.333 src/sys/uvm/uvm_map.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_map.c diff -u src/sys/uvm/uvm_map.c:1.332 src/sys/uvm/uvm_map.c:1.333 --- src/sys/uvm/uvm_map.c:1.332 Fri Jan 23 11:13:53 2015 +++ src/sys/uvm/uvm_map.c Sun Feb 1 11:26:00 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_map.c,v 1.332 2015/01/23 16:13:53 chs Exp $ */ +/* $NetBSD: uvm_map.c,v 1.333 2015/02/01 16:26:00 christos Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -66,7 +66,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.332 2015/01/23 16:13:53 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.333 2015/02/01 16:26:00 christos Exp $"); #include "opt_ddb.h" #include "opt_uvmhist.h" @@ -1078,7 +1078,7 @@ uvm_map(struct vm_map *map, vaddr_t *sta } #if defined(DEBUG) - if (!error && VM_MAP_IS_KERNEL(map)) { + if (!error && VM_MAP_IS_KERNEL(map) && (flags & UVM_FLAG_NOWAIT) == 0) { uvm_km_check_empty(map, *startp, *startp + size); } #endif /* defined(DEBUG) */ @@ -2253,7 +2253,7 @@ uvm_unmap_remove(struct vm_map *map, vad } } - if (VM_MAP_IS_KERNEL(map)) { + if (VM_MAP_IS_KERNEL(map) && (flags & UVM_FLAG_NOWAIT) == 0) { uvm_km_check_empty(map, entry->start, entry->end); }