mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
065dbdc130
commit
ab83ac429d
1 changed files with 1 additions and 1 deletions
|
|
@ -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 @@ retry:
|
|||
goto retry;
|
||||
}
|
||||
bogus = 0;
|
||||
vm_page_lock_queues();
|
||||
for (i = 0; i < bp->b_npages; i++) {
|
||||
m = bp->b_pages[i];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue