Re: [PATCH v2 1/5] mutex: In mutex_can_spin_on_owner(), returnfalse if task need_resched()

From: Davidlohr Bueso
Date: Tue Jan 28 2014 - 16:09:35 EST


On Tue, 2014-01-28 at 11:13 -0800, Jason Low wrote:
> The mutex_can_spin_on_owner() function should also return false if the
> task needs to be rescheduled to avoid entering the MCS queue when it
> needs to reschedule.
>
> Signed-off-by: Jason Low <jason.low2@xxxxxx>

Reviewed-by: Davidlohr Bueso <davidlohr@xxxxxx>

--
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/