Re: [PATCH 4/8] Use prepare_to_wait_exclusive() instead prepare_to_wait()

From: Rik van Riel
Date: Tue Dec 15 2009 - 21:44:39 EST


On 12/15/2009 07:48 PM, KOSAKI Motohiro wrote:

if we really need wait a bit, Mike's wake_up_batch is best, I think.
It mean
- if another CPU is idle, wake up one process soon. iow, it don't
make meaningless idle.
- if another CPU is busy, woken process don't start to run awhile.
then, zone_watermark_ok() can calculate correct value.

Agreed, that should work great.

--
All rights reversed.
--
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/