Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753164Ab2JRTed (ORCPT ); Thu, 18 Oct 2012 15:34:33 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:42976 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752982Ab2JRTec (ORCPT ); Thu, 18 Oct 2012 15:34:32 -0400 MIME-Version: 1.0 In-Reply-To: References: From: Bryan Wu Date: Thu, 18 Oct 2012 12:34:10 -0700 Message-ID: Subject: Re: [PATCH] ledtrig-cpu: use spin_lock to replace mutex lock To: Linus Walleij Cc: "Rafael J. Wysocki" , Miles Lane , akpm , Linux LED Subsystem , lkml Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 967 Lines: 29 On Thu, Oct 18, 2012 at 11:35 AM, Linus Walleij wrote: > On Thu, Oct 18, 2012 at 8:18 PM, Bryan Wu 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 >> Reported-by: Rafael J. Wysocki >> Cc: Linus Walleij >> Signed-off-by: Bryan Wu > > Looks correct to me: > Acked-by: Linus Walleij > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/