Re: [PATCH 04/21] sched: Change the ttwu success details

From: Peter Zijlstra
Date: Wed Apr 13 2011 - 15:11:45 EST


On Thu, 2011-04-14 at 03:39 +0900, Tejun Heo wrote:
> One way to deal with it would be adding an extra worker flag to track
> sleep state from workqueue side so that it can filter out spurious
> wakeups; however, I think it would be far better to resolve this from
> scheduler side. If the callback name is misleading, rename it to
> wq_worker_sched_activated() or something and call it only when the
> task gets activated.

Right, what I did is move the thing near activate_task() instead of
relying on any passing on of that information.
--
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/