Re: [PATCH] WAIT_BIT_QUEUE

From: Andrew Morton
Date: Mon May 10 2004 - 06:32:13 EST


Oleg Nesterov <oleg@xxxxxxxxxx> wrote:
>
> a better (imho) alternative to filtered wakeups.
> see http://marc.theaimsgroup.com/?l=linux-kernel&m=108375670411475&w=2
>
> process waiting in wait_on_page_bit() will be woken only after
> the required bit is cleared.
>
> so there is no need to recheck the bit in do/while loop, because
> there is no false wakeups now.

yup. Please see the new patches in 2.6.6-mm1 - the waiter puts the bit
number into the waitqueue structure and the waker tests it before
delivering the wakeup.

-
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/