diff options
author | alc <alc@FreeBSD.org> | 2010-05-08 23:01:47 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-05-08 23:01:47 +0000 |
commit | bc80981f798b17dceedfc1e791aa6b4d0f7370d6 (patch) | |
tree | 23139dae1c01ea3ea9d34ea78ed708da67297258 /sys | |
parent | 59b934ef4016aab6f15404750fdcf3f77310bab1 (diff) | |
download | FreeBSD-src-bc80981f798b17dceedfc1e791aa6b4d0f7370d6.zip FreeBSD-src-bc80981f798b17dceedfc1e791aa6b4d0f7370d6.tar.gz |
Update a comment: It no longer makes sense to talk about the page queues
lock here.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sys_pipe.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 7130c26..22401a7 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -767,13 +767,10 @@ pipe_build_write_buffer(wpipe, uio) return (EFAULT); for (i = 0; addr < endaddr; addr += PAGE_SIZE, i++) { /* - * vm_fault_quick() can sleep. Consequently, - * vm_page_lock_queue() and vm_page_unlock_queue() - * should not be performed outside of this loop. + * vm_fault_quick() can sleep. */ race: if (vm_fault_quick((caddr_t)addr, VM_PROT_READ) < 0) { - for (j = 0; j < i; j++) { vm_page_lock(wpipe->pipe_map.ms[j]); vm_page_unhold(wpipe->pipe_map.ms[j]); |