aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/md
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2010-06-15 18:37:31 +0000
committerAlan Cox <alc@FreeBSD.org>2010-06-15 18:37:31 +0000
commitecd5dd957d5b3d16e0f406d15be41794ed273f1c (patch)
tree41081c070b7756f65eba013696a7192e0cc91788 /sys/dev/md
parent358b7816280d03f8eabcbd2b36e4bbf3673b3003 (diff)
Notes
Diffstat (limited to 'sys/dev/md')
-rw-r--r--sys/dev/md/md.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index edd687fca9e0..d4f145107642 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -666,12 +666,10 @@ mdstart_swap(struct md_s *sc, struct bio *bp)
sched_unpin();
vm_page_wakeup(m);
vm_page_lock(m);
- vm_page_lock_queues();
vm_page_activate(m);
+ vm_page_unlock(m);
if (bp->bio_cmd == BIO_WRITE)
vm_page_dirty(m);
- vm_page_unlock_queues();
- vm_page_unlock(m);
/* Actions on further pages start at offset 0 */
p += PAGE_SIZE - offs;