]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
umtx: Add bitset conditional wakeup functionality.
authorDmitry Chagin <dchagin@FreeBSD.org>
Thu, 29 Jul 2021 09:42:49 +0000 (12:42 +0300)
committerDmitry Chagin <dchagin@FreeBSD.org>
Thu, 29 Jul 2021 09:42:49 +0000 (12:42 +0300)
commit7caa29115b4a2023128ed07942b71074507a44a1
treefa7c8dec5f5a65a92f2f9c31404aa5a43a3961b4
parent1fdcc87cfd6775896d3cb46bb677dc2a15cfd9ac
umtx: Add bitset conditional wakeup functionality.

The bitset is a Linux emulation layer extension. This 32-bit mask, in which at
least one bit must be set, is used to select which threads should be woken up.

The bitset is stored in the umtx_q structure, which is used to enqueue the waiter
into the umtx waitqueue. Put the bitset into the hole, that appeared on LP64 due
to data alignment, to prevent the growth of the struct umtx_q.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D31234
MFC after: 2 weeks
sys/kern/kern_umtx.c
sys/sys/umtxvar.h