o Acquire and release Giant in vm_map_unlock_and_wait().

Submitted by:	tegge
This commit is contained in:
Alan Cox 2002-06-12 08:15:52 +00:00
parent bdc2055256
commit d46e7d6bee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98142

View File

@ -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);
}
/*