mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Permit vm_object_pip_add() and vm_object_pip_wakeup() on the kmem_object
without Giant held.
This commit is contained in:
parent
f31c239da1
commit
f279b88deb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113419
@ -268,7 +268,8 @@ vm_object_clear_flag(vm_object_t object, u_short bits)
|
||||
void
|
||||
vm_object_pip_add(vm_object_t object, short i)
|
||||
{
|
||||
GIANT_REQUIRED;
|
||||
|
||||
mtx_assert(object == kmem_object ? &object->mtx : &Giant, MA_OWNED);
|
||||
object->paging_in_progress += i;
|
||||
}
|
||||
|
||||
@ -282,7 +283,8 @@ vm_object_pip_subtract(vm_object_t object, short i)
|
||||
void
|
||||
vm_object_pip_wakeup(vm_object_t object)
|
||||
{
|
||||
GIANT_REQUIRED;
|
||||
|
||||
mtx_assert(object == kmem_object ? &object->mtx : &Giant, MA_OWNED);
|
||||
object->paging_in_progress--;
|
||||
if ((object->flags & OBJ_PIPWNT) && object->paging_in_progress == 0) {
|
||||
vm_object_clear_flag(object, OBJ_PIPWNT);
|
||||
|
Loading…
Reference in New Issue
Block a user