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
This commit is contained in:
Alan Cox 2003-08-02 17:08:21 +00:00
parent e4e2c61313
commit 884962ae4e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118361

View File

@ -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