Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753499Ab1CJQak (ORCPT ); Thu, 10 Mar 2011 11:30:40 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:48491 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751020Ab1CJQaj (ORCPT ); Thu, 10 Mar 2011 11:30:39 -0500 Message-ID: <4D78FCA6.7010000@eukrea.com> Date: Thu, 10 Mar 2011 17:30:30 +0100 From: =?ISO-8859-1?Q?Eric_B=E9nard?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.7 MIME-Version: 1.0 To: Alan Cox CC: =?ISO-8859-1?Q?M=E1rio_Isidoro?= , gregkh@suse.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH n_gsm] GSM Mux in non-transparent mode References: <1299724790.1800.135.camel@Paio> <20110310110658.0a46d19d@lxorguk.ukuu.org.uk> In-Reply-To: <20110310110658.0a46d19d@lxorguk.ukuu.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2600 Lines: 55 >> There is a problem that happens if the process that is holding the >> attached line discipline tries to detach it before a process using a >> virtual com manages to close it. Both processes end up dealocked. I >> think this has to do with the tty lock. I don't have the backtrace with >> me here is the log I get here : [ 1051.950000] ------------[ cut here ]------------ [ 1051.950000] WARNING: at drivers/tty/tty_mutex.c:31 tty_lock+0x30/0x50() [ 1051.960000] Modules linked in: [ 1051.960000] [] (unwind_backtrace+0x0/0xe4) from [] (warn_slowpath_common+0x4c/0x64) [ 1051.970000] [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_null+0x18/0x1c) [ 1051.980000] [] (warn_slowpath_null+0x18/0x1c) from [] (tty_lock+0x30/0x50) [ 1051.990000] [] (tty_lock+0x30/0x50) from [] (__tty_hangup+0x78/0x47c) [ 1052.000000] [] (__tty_hangup+0x78/0x47c) from [] (gsm_cleanup_mux+0x198/0x214) [ 1052.010000] [] (gsm_cleanup_mux+0x198/0x214) from [] (gsmld_close+0x28/0x4c) [ 1052.020000] [] (gsmld_close+0x28/0x4c) from [] (tty_ldisc_close+0x58/0x64) [ 1052.030000] [] (tty_ldisc_close+0x58/0x64) from [] (tty_ldisc_release+0x38/0x70) [ 1052.040000] [] (tty_ldisc_release+0x38/0x70) from [] (tty_release+0x41c/0x480) [ 1052.050000] [] (tty_release+0x41c/0x480) from [] (fput+0x108/0x200) [ 1052.060000] [] (fput+0x108/0x200) from [] (filp_close+0x60/0x6c) [ 1052.070000] [] (filp_close+0x60/0x6c) from [] (put_files_struct+0x80/0xdc) [ 1052.080000] [] (put_files_struct+0x80/0xdc) from [] (do_exit+0x1b8/0x6bc) [ 1052.080000] [] (do_exit+0x1b8/0x6bc) from [] (do_group_exit+0xc0/0xf4) [ 1052.090000] [] (do_group_exit+0xc0/0xf4) from [] (get_signal_to_deliver+0x3ac/0x40c) [ 1052.100000] [] (get_signal_to_deliver+0x3ac/0x40c) from [] (do_signal+0x68/0x614) [ 1052.110000] [] (do_signal+0x68/0x614) from [] (do_notify_resume+0x18/0x60) [ 1052.120000] [] (do_notify_resume+0x18/0x60) from [] (work_pending+0x24/0x28) [ 1052.130000] ---[ end trace ac06c34c1914deef ]--- Eric -- 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/