Reduce the scope of the page queues lock in vfs_busy_pages() now that

vm_page_sleep_if_busy() no longer requires the caller to hold the page
queues lock.
This commit is contained in:
Alan Cox 2006-08-08 06:00:49 +00:00
parent 065dbdc130
commit ab83ac429d

View File

@ -3386,7 +3386,6 @@ vfs_busy_pages(struct buf *bp, int clear_modify)
vfs_setdirty(bp);
VM_OBJECT_LOCK(obj);
retry:
vm_page_lock_queues();
for (i = 0; i < bp->b_npages; i++) {
m = bp->b_pages[i];
@ -3394,6 +3393,7 @@ vfs_busy_pages(struct buf *bp, int clear_modify)
goto retry;
}
bogus = 0;
vm_page_lock_queues();
for (i = 0; i < bp->b_npages; i++) {
m = bp->b_pages[i];