On 07/28, Kirill Tkhai wrote: > > You're right. We have to check for "task_migrating" in switched_from_fair(). > One more place is switched_from_dl().
Or we can simply check task_migrating() in __sched_setscheduler(), like set_cpus_allowed() does. This probably means that you should add this check into task_rq_lock() as Peter suggests. Or at least add another task_rq_lock_xxx() helper. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

