From 43a8628b32c6dbffadc0cd1ddba3f22fbad79f5c Mon Sep 17 00:00:00 2001 From: alc Date: Mon, 20 Jan 2003 09:24:03 +0000 Subject: - Hold the page queues lock around vm_page_hold(). - Assert that the page queues lock rather than Giant is held in vm_page_hold(). --- sys/kern/vfs_bio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/kern/vfs_bio.c') diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 1f1914c..b8a156c 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3579,7 +3579,9 @@ vmapbuf(struct buf *bp) if (pa == 0) panic("vmapbuf: page not present"); m = PHYS_TO_VM_PAGE(pa); + vm_page_lock_queues(); vm_page_hold(m); + vm_page_unlock_queues(); bp->b_pages[pidx] = m; } if (pidx > btoc(MAXPHYS)) -- cgit v1.1