Re: [PATCH] futex: add FUTEX_SET_WAIT operation

Darren Hart
2009-11-18T00:13:39Z

Michel Lespinasse wrote:
> Hi,
>
> I would like to propose adding a new FUTEX_SET_WAIT operation to the futex
> code, as per the following patch against 2.6.32-rc7

If we go ahead with this, I'd like to adapt FUTEX_WAIT_REQUEUE_PI to use
this as well, as it faces all the same races related to the calling task
getting to sleep in the kernel before a wake call (FUTEX_CMP_REQUEUE_PI
in this case) as futex_wait does. FUTEX_SET_WAIT_REQUEUE_PI is
ridiculously long... but it is what it is I guess :-)

--
Darren "not-as-brave-as-peterz (short quote for Linus)" Hart
IBM Linux Technology Center
Real-Time Linux Team