Re: [PATCH] futex: add FUTEX_SET_WAIT operation

From: Darren Hart
Date: Tue Nov 17 2009 - 19:13:50 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/