Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751438Ab2JRSfc (ORCPT ); Thu, 18 Oct 2012 14:35:32 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:50494 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750724Ab2JRSfa (ORCPT ); Thu, 18 Oct 2012 14:35:30 -0400 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 18 Oct 2012 20:35:29 +0200 Message-ID: Subject: Re: [PATCH] ledtrig-cpu: use spin_lock to replace mutex lock From: Linus Walleij To: Bryan Wu 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: 767 Lines: 22 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 Yours, Linus Walleij -- 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/