Re: sched_setscheduler() vs idle_balance() race

From: Peter Zijlstra
Date: Mon Jun 01 2015 - 04:19:45 EST


On Sat, May 30, 2015 at 03:08:26PM +0200, Mike Galbraith wrote:

> Seems trying to make the target invisible to balancing created a new
> race: dequeue target, do stuff that may drop rq->lock while it's
> dequeued, target sneaks into schedule(), dequeues itself (#2), boom.

Aw god yes, duh.

Fun little puzzle this. Lemme go think a bit.
--
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/