From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH 1/3] Input: sysrq - drop tty argument from sysrq ops handlers Date: Wed, 04 Aug 2010 18:33:50 +1000 Message-ID: <1280910830.1902.144.camel@pasglop> References: <20100804075602.30647.91462.stgit@localhost.localdomain> <20100804075900.30647.46910.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from gate.crashing.org ([63.228.1.57]:41374 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753895Ab0HDIeX (ORCPT ); Wed, 4 Aug 2010 04:34:23 -0400 In-Reply-To: <20100804075900.30647.46910.stgit@localhost.localdomain> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, David Airlie , David Miller , Fenghua Yu , Greg Kroah-Hartman , Jason Wessel , Martin Schwidefsky , Russell King , Tony Luck On Wed, 2010-08-04 at 00:59 -0700, Dmitry Torokhov wrote: > Noone is using tty argument so let's get rid of it. While talking about sysrq... I noticed that serial drivers call sysrq with the uart lock held. I've seen deadlocks caused by that, for example, when entering the debugger, it waits forever for a CPU which is itself waiting on the UART lock. I have a patch to drop the lock in serial_core.h, I'll post that tomorrow hopefully, just checking if there's any objection there ? The serial drivers might need to be audited a bit to make sure they cope with the lock being dropped and re-acquired around the sysrq call. Cheers, Ben.