Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: [PATCH] rfcomm: Convert spinlocks into mutexes From: Marcel Holtmann In-Reply-To: <20140429183834.GA6076@fmn.suse.cz> Date: Mon, 5 May 2014 19:25:50 -0700 Cc: "Gustavo F. Padovan" , Johan Hedberg , Peter Hurley , Seung-Woo Kim , Gianluca Anzolin , BlueZ development , LKML , Al Cho Message-Id: <7304B0EB-403B-401E-8823-CBB1012C4229@holtmann.org> References: <20140429183834.GA6076@fmn.suse.cz> To: Libor Pechacek Sender: linux-kernel-owner@vger.kernel.org List-ID: Hi Libor, > Enabling CONFIG_DEBUG_ATOMIC_SLEEP has shown that some rfcomm functions > acquiring spinlocks call sleeping locks further in the chain. Converting > the offending spinlocks into mutexes makes sleeping safe. > > Signed-off-by: Libor Pechacek > --- > include/net/bluetooth/rfcomm.h | 6 +++--- > net/bluetooth/rfcomm/core.c | 2 +- > net/bluetooth/rfcomm/tty.c | 20 ++++++++++---------- > 3 files changed, 14 insertions(+), 14 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel