1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Remove unnecessary page queues locking around vm_page_wakeup(). (This

change is applicable to RELENG_7 but not RELENG_6.)

MFC after:	1 week
This commit is contained in:
Alan Cox 2009-02-22 02:50:31 +00:00
parent c7c94913bd
commit b72cca38a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188908

View File

@ -629,9 +629,7 @@ mdstart_swap(struct md_s *sc, struct bio *bp)
if (rv == VM_PAGER_ERROR) {
sf_buf_free(sf);
sched_unpin();
vm_page_lock_queues();
vm_page_wakeup(m);
vm_page_unlock_queues();
break;
}
bcopy((void *)(sf_buf_kva(sf) + offs), p, len);
@ -641,9 +639,7 @@ mdstart_swap(struct md_s *sc, struct bio *bp)
if (rv == VM_PAGER_ERROR) {
sf_buf_free(sf);
sched_unpin();
vm_page_lock_queues();
vm_page_wakeup(m);
vm_page_unlock_queues();
break;
}
bcopy(p, (void *)(sf_buf_kva(sf) + offs), len);
@ -655,9 +651,7 @@ mdstart_swap(struct md_s *sc, struct bio *bp)
if (rv == VM_PAGER_ERROR) {
sf_buf_free(sf);
sched_unpin();
vm_page_lock_queues();
vm_page_wakeup(m);
vm_page_unlock_queues();
break;
}
bzero((void *)(sf_buf_kva(sf) + offs), len);
@ -667,8 +661,8 @@ mdstart_swap(struct md_s *sc, struct bio *bp)
}
sf_buf_free(sf);
sched_unpin();
vm_page_lock_queues();
vm_page_wakeup(m);
vm_page_lock_queues();
vm_page_activate(m);
if (bp->bio_cmd == BIO_WRITE)
vm_page_dirty(m);