In vm_swapout_map_deactivate_pages(), it is enough to lock the map for read.
Reviewed by: alc, markj (as part of the larger patch) Tested by: pho (again, as part of the larger patch) Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D13671
This commit is contained in:
parent
54ef33c2a8
commit
0080a8fa95
@ -263,7 +263,7 @@ vm_swapout_map_deactivate_pages(vm_map_t map, long desired)
|
||||
vm_object_t obj, bigobj;
|
||||
int nothingwired;
|
||||
|
||||
if (!vm_map_trylock(map))
|
||||
if (!vm_map_trylock_read(map))
|
||||
return;
|
||||
|
||||
bigobj = NULL;
|
||||
@ -327,7 +327,7 @@ vm_swapout_map_deactivate_pages(vm_map_t map, long desired)
|
||||
vm_map_max(map));
|
||||
}
|
||||
|
||||
vm_map_unlock(map);
|
||||
vm_map_unlock_read(map);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user