Re: [PATCH 1/2] sched: Add schedule_(raw_)spin_unlock andschedule_(raw_)spin_unlock_irq

From: Peter Zijlstra
Date: Tue Jun 18 2013 - 13:28:15 EST

On Tue, Jun 18, 2013 at 07:36:52PM +0400, Kirill Tkhai wrote:
> Helpers for replacement repeating patterns:
> 1)spin_unlock(lock);
> schedule();
> 2)spin_unlock_irq(lock);
> schedule();

I just noticed this; the existing schedule_preempt_disabled() is
equivalent to:


So I somewhat expected these new primitives to be:


Now I haven't actually looked at the usage patch to see what the
converted sites look like (thanks for adding that one though!).

My OCD just triggered on the preemption and locked schedule calls having
different semantics.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at