Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 15 Mar 2003 19:45:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 15 Mar 2003 19:45:56 -0500 Received: from pcp02781107pcs.eatntn01.nj.comcast.net ([68.85.61.149]:50162 "EHLO linnie.riede.org") by vger.kernel.org with ESMTP id ; Sat, 15 Mar 2003 19:45:55 -0500 Date: Sat, 15 Mar 2003 19:55:56 -0500 From: Willem Riede To: Alan Cox Cc: Zwane Mwaikambo , dan carpenter , Linux Kernel Mailing List Subject: Re: Any hope for ide-scsi (error handling)? Message-ID: <20030316005556.GM7082@linnie.riede.org> Reply-To: wrlk@riede.org References: <200303151926.h2FJQLnB103490@pimout1-ext.prodigy.net> <200303152012.h2FKCulK283698@pimout2-ext.prodigy.net> <20030315210120.GI7082@linnie.riede.org> <1047777805.1327.23.camel@irongate.swansea.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7BIT In-Reply-To: <1047777805.1327.23.camel@irongate.swansea.linux.org.uk>; from alan@lxorguk.ukuu.org.uk on Sat, Mar 15, 2003 at 20:23:26 -0500 X-Mailer: Balsa 1.4.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 20 On 2003.03.15 20:23 Alan Cox wrote: > On Sat, 2003-03-15 at 21:01, Willem Riede wrote: > > It may not be elegant to schedule(1) with the lock taken, but it > > does work. > > You can't sleep holding a lock. You also can't null the hwgroup that > way and you have to deal with some other locking concerns. Have a look > how HDIO_*_RESET is handled in the very latest 2.4/2.5-ac code and > you should be able to follow from that. Note your code paths will be > much like the ioctl as the existing reset code paths are for paths > where we abort from a known safe state (drive initiated or locked). > > With the stuff there now you should be able to abort the command > fairly cleanly and then reset the interface. > I hear you, and I will take a hard look at that code. But please realize, that if we get to this code segment, the drive has _not_ responded to the regular command and is in an _unknown_ state. Thanks, Willem Riede. - 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/