mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-21 16:32:25 +01:00
o Acquire and release Giant in vm_map_unlock_and_wait().
Submitted by: tegge
This commit is contained in:
parent
bdc2055256
commit
d46e7d6bee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98142
@ -429,11 +429,13 @@ _vm_map_clear_recursive(vm_map_t map, const char *file, int line)
|
||||
static __inline int
|
||||
vm_map_unlock_and_wait(vm_map_t map, boolean_t user_wait)
|
||||
{
|
||||
int retval;
|
||||
|
||||
GIANT_REQUIRED;
|
||||
mtx_lock(&Giant);
|
||||
vm_map_unlock(map);
|
||||
|
||||
return (tsleep(&map->root, PVM, "vmmapw", 0));
|
||||
retval = tsleep(&map->root, PVM, "vmmapw", 0);
|
||||
mtx_unlock(&Giant);
|
||||
return (retval);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user