Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261831AbVA3XWK (ORCPT ); Sun, 30 Jan 2005 18:22:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261834AbVA3XWK (ORCPT ); Sun, 30 Jan 2005 18:22:10 -0500 Received: from smtp813.mail.sc5.yahoo.com ([66.163.170.83]:33925 "HELO smtp813.mail.sc5.yahoo.com") by vger.kernel.org with SMTP id S261831AbVA3XV6 (ORCPT ); Sun, 30 Jan 2005 18:21:58 -0500 From: Dmitry Torokhov To: Al Viro Subject: Re: Possible bug in keyboard.c (2.6.10) Date: Sun, 30 Jan 2005 18:21:53 -0500 User-Agent: KMail/1.7.2 Cc: Vojtech Pavlik , Roman Zippel , Andries Brouwer , linux-kernel@vger.kernel.org References: <20050129112510.GB2268@ucw.cz> <20050130084154.GU8859@parcelfarce.linux.theplanet.co.uk> In-Reply-To: <20050130084154.GU8859@parcelfarce.linux.theplanet.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501301821.53924.dtor_core@ameritech.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1086 Lines: 27 On Sunday 30 January 2005 03:41, Al Viro wrote: > On Sat, Jan 29, 2005 at 12:25:10PM +0100, Vojtech Pavlik wrote: > > I know. As I said, this is a problem I know about, and will be fixed. I > > was mainly interested whether anyone sees further problems in scenarios > > which don't include device addition/removal. > > > > We already fixed this in serio, and input and gameport are next in the > > list. > > OK, I'll bite. What's to guarantee that no events will happen in > the middle of serio_unregister_port(), right after we'd done > serio_remove_pending_events()? At this point serio is disconnected from driver and serio_interrupt will only queue rescans only if serio->registered. I guess I will need to protect change to serio->registered and take serio->lock to be completely in clear. Thanks for pointing this out. -- Dmitry - 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/