1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

o Acquire and release Giant in vm_map_wakeup() to prevent

a lost wakeup().

Reviewed by:	tegge
This commit is contained in:
Alan Cox 2002-06-17 13:27:40 +00:00
parent b887806d7b
commit b49ecb86d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98343

View File

@ -435,6 +435,13 @@ static __inline void
vm_map_wakeup(vm_map_t map)
{
/*
* Acquire and release Giant to prevent a wakeup() from being
* performed (and lost) between the vm_map_unlock() and the
* tsleep() in vm_map_unlock_and_wait().
*/
mtx_lock(&Giant);
mtx_unlock(&Giant);
wakeup(&map->root);
}