On 8/24/21 11:38 AM, Pavel Begunkov wrote: > poll-mshot-update constantly hangs. Apparently, the reason is > reap_polls() clearing ->triggered flags racing with trigger_polls() > setting them. So, reinit the flags only after joining the thread. > > Also, replace magic constants with proper identificators, e.g. > 1 -> IORING_POLL_ADD_MULTI. Good catch! -- Jens Axboe