mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 01:30:43 +00:00
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:
parent
e4e2c61313
commit
884962ae4e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118361
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user