Can we include the warning here? In this way people that are hitting theSure. I will add the warning message.
same warning can search for it and find this fix.
Will add this in the next version.
Moreover, we can also add:
Fixes: 0e7ffff1b811 ("scx: Fix raciness in scx_ops_bypass()")
Maybe we can also do this here since we're already holding the rq lock and
irqs are disabled:
/* resched to restore ticks and idle state */
if (cpu == smp_processor_id() || cpu_online(cpu))
resched_curr(rq);
- rq_unlock(rq, &rf);
+ raw_spin_rq_unlock(rq);
And remove the following:
/* resched to restore ticks and idle state */
resched_cpu(cpu);