From 884962ae4eca91c92d38aa48896ee675a99398a2 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 2 Aug 2003 17:08:21 +0000 Subject: [PATCH] Use kmem_alloc_nofault() rather than kmem_alloc_pageable() in proc_rwmem(). See revision 1.140 of kern/sys_pipe.c for a detailed rationale. Submitted by: tegge --- sys/kern/sys_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 370b75708cfe..aa791036b5c8 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -177,7 +177,7 @@ proc_rwmem(struct proc *p, struct uio *uio) reqprot = writing ? (VM_PROT_WRITE | VM_PROT_OVERRIDE_WRITE) : VM_PROT_READ; - kva = kmem_alloc_pageable(kernel_map, PAGE_SIZE); + kva = kmem_alloc_nofault(kernel_map, PAGE_SIZE); /* * Only map in one page at a time. We don't have to, but it