Re: [PATCH] ledtrig-cpu: use spin_lock to replace mutex lock

From: Bryan Wu
Date: Thu Oct 18 2012 - 15:34:22 EST


On Thu, Oct 18, 2012 at 11:35 AM, Linus Walleij
<linus.walleij@xxxxxxxxxx> wrote:
> On Thu, Oct 18, 2012 at 8:18 PM, Bryan Wu <cooloney@xxxxxxxxx> wrote:
>
>> Mutex lock is not safe in atomic context like the bug reported by
>> Miles Lane:
> (...)
>> This patch replace mutex lock with spin lock which is safe for this case.
>>
>> Reported-by: Miles Lane <miles.lane@xxxxxxxxx>
>> Reported-by: Rafael J. Wysocki <rjw@xxxxxxx>
>> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>
>> Signed-off-by: Bryan Wu <cooloney@xxxxxxxxx>
>
> Looks correct to me:
> Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
>

Thanks, Linus.

Miles, could you please help to try this patch on your testing system?
I really appreciate it.

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