From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756004AbcBCOmB (ORCPT ); Wed, 3 Feb 2016 09:42:01 -0500 Received: from mx2.suse.de ([195.135.220.15]:48035 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755849AbcBCOl7 (ORCPT ); Wed, 3 Feb 2016 09:41:59 -0500 Date: Wed, 03 Feb 2016 15:41:58 +0100 Message-ID: From: Takashi Iwai To: Dmitry Vyukov Cc: alsa-devel@alsa-project.org, Jie Yang , Mark Brown , Jaroslav Kysela , LKML , Alexander Potapenko , Kostya Serebryany , syzkaller , Sasha Levin Subject: Re: sound: deadlock between snd_rawmidi_kernel_open/snd_seq_port_connect In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.5 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 03 Feb 2016 14:22:18 +0100, Dmitry Vyukov wrote: > > On Wed, Feb 3, 2016 at 8:47 AM, Takashi Iwai wrote: > >> > This looks like a false-positive report to me. Of course, we should > >> > annotate the mutex there for nested locks, though. > >> > >> > >> Takashi, can you please annotate it for lockdep? I hit it on every run. > > > > The lock had an annotation but alas it didn't seem enough. > > In anyway, it's not good to have double locks if it's avoidable. So I > > worked on it now, and below is the current result of the hack. > > > > The change became a bit more intrusive than wished, but it should be > > still simple enough. I put this on top of topic/core-fixes branch. > > > I don't see the deadlock reports now. Thanks! Good to hear, now queued for the next pull request. Thanks for quick tests! Takashi