Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758180AbaJ3CGZ (ORCPT ); Wed, 29 Oct 2014 22:06:25 -0400 Received: from mailout32.mail01.mtsvc.net ([216.70.64.70]:55357 "EHLO n23.mail01.mtsvc.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755837AbaJ3CGY (ORCPT ); Wed, 29 Oct 2014 22:06:24 -0400 Message-ID: <54519D19.6070205@hurleysoftware.com> Date: Wed, 29 Oct 2014 22:06:17 -0400 From: Peter Hurley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Sasha Levin , marcel@holtmann.org, gustavo@padovan.org, johan.hedberg@gmail.com CC: davem@davemloft.net, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Bluetooth: Revert "Bluetooth: rfcomm: Remove unnecessary krfcommd event" References: <1414632736-18782-1-git-send-email-sasha.levin@oracle.com> In-Reply-To: <1414632736-18782-1-git-send-email-sasha.levin@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Authenticated-User: 990527 peter@hurleysoftware.com X-MT-ID: 8FA290C2A27252AACF65DBC4A42F3CE3735FB2A4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sasha, On 10/29/2014 09:32 PM, Sasha Levin wrote: > This reverts commit e5842cdb0f4f2c68f6acd39e286e5d10d8c073e8. > > We can't call rfcomm_process_sessions() while our task state is not > TASK_RUNNING since rfcomm_process_sessions() tries to lock mutexes > and sleep. The scheduler even complains about it: > > [ 21.683959] WARNING: CPU: 13 PID: 8165 at kernel/sched/core.c:7305 __might_sleep+0xe5/0x1b0() > [ 21.683962] do not call blocking ops when !TASK_RUNNING; state=1 set at rfcomm_run (net/bluetooth/rfcomm/core.c:2096) This problem is in-process with Peter Z and Oleg and a new api for handling nested sleeps. The thread is here http://www.gossamer-threads.com/lists/linux/kernel/2019181?do=post_view_threaded and the reminder thread here https://lkml.org/lkml/2014/10/27/343 Regards, Peter Hurley -- 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/