mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
- VM_LOCK_GIANT in the swap pager's iodone routine as VFS will soon call it
without Giant. Sponsored by: Isilon Systems, Inc.
This commit is contained in:
parent
cd360e947b
commit
382a601cd7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145699
@ -1399,6 +1399,7 @@ swp_pager_async_iodone(struct buf *bp)
|
||||
int i;
|
||||
vm_object_t object = NULL;
|
||||
|
||||
VM_LOCK_GIANT();
|
||||
bp->b_flags |= B_DONE;
|
||||
|
||||
/*
|
||||
@ -1567,6 +1568,7 @@ swp_pager_async_iodone(struct buf *bp)
|
||||
)
|
||||
)
|
||||
);
|
||||
VM_UNLOCK_GIANT();
|
||||
splx(s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user