Re: [PATCH] sched/kthread: Complain loudly when others violate ourflags

From: Peter Zijlstra
Date: Fri Sep 30 2011 - 05:30:36 EST


On Fri, 2011-09-30 at 10:34 +0200, Peter Zijlstra wrote:
> Introduce a new WQ_NON_AFFINE flag that indicates a per-cpu workqueue
> will not respect cpu affinity and use this to migrate all its pending
> works to whatever cpu is doing cpu-down.

Forgot to mention, it will also dis-allow queue_work_on() usage for
these workqueues, since that API implies you actually care what cpu the
work runs on, which cannot be guaranteed.
--
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/