diff options
author | alc <alc@FreeBSD.org> | 2002-11-24 21:13:34 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-11-24 21:13:34 +0000 |
commit | 91507c53d54a6c48f11c5bf79ca4978beba61a54 (patch) | |
tree | 91af59c4d730e42d500735358c7799e9d7a6c227 /sys/sparc64 | |
parent | dc656bd28b6220821e4529f4cc6b98b61686656e (diff) | |
download | FreeBSD-src-91507c53d54a6c48f11c5bf79ca4978beba61a54.zip FreeBSD-src-91507c53d54a6c48f11c5bf79ca4978beba61a54.tar.gz |
Add page queues locking to vunmapbuf().
Approved by: re (blanket)
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/vm_machdep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c index a3771d5..65bb563 100644 --- a/sys/sparc64/sparc64/vm_machdep.c +++ b/sys/sparc64/sparc64/vm_machdep.c @@ -379,8 +379,10 @@ vunmapbuf(struct buf *bp) npages = bp->b_npages; pmap_qremove(trunc_page((vm_offset_t)bp->b_data), npages); + vm_page_lock_queues(); for (pidx = 0; pidx < npages; pidx++) vm_page_unhold(bp->b_pages[pidx]); + vm_page_unlock_queues(); bp->b_data = bp->b_saveaddr; } |