Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753026AbYFYUeA (ORCPT ); Wed, 25 Jun 2008 16:34:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751565AbYFYUdw (ORCPT ); Wed, 25 Jun 2008 16:33:52 -0400 Received: from mu-out-0910.google.com ([209.85.134.187]:60886 "EHLO mu-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751256AbYFYUdv (ORCPT ); Wed, 25 Jun 2008 16:33:51 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-disposition:message-id:content-type :content-transfer-encoding; b=vq2AX7s3kOSX4UTx8XH9cFaBYonOTkvD4owXBjON7cd2AuyNkgNTEzRn8Cz0Yd5OU4 CNnEbVp1h3xY7NgI45VKMALlKQn5fiFhGD/WntN8b8pAIQxYWnYih4BjQ+GEqORa8L18 ciTM8axNVq08+6f3o/T+9JDNqTYKkz7++SRfI= From: Bartlomiej Zolnierkiewicz To: Elias Oltmanns Subject: Re: [PATCH] IDE: Fix HDIO_DRIVE_RESET handling Date: Wed, 25 Jun 2008 22:24:36 +0200 User-Agent: KMail/1.9.9 Cc: "Alan Cox" , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, "Randy Dunlap" References: <87k5gmz596.fsf@denkblock.local> <58cb370e0806240719o4a70537p4a6fb64e9086e2d8@mail.gmail.com> <87k5gdn4fq.fsf@denkblock.local> In-Reply-To: <87k5gdn4fq.fsf@denkblock.local> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200806252224.36364.bzolnier@gmail.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2411 Lines: 50 On Wednesday 25 June 2008, Elias Oltmanns wrote: > "Bartlomiej Zolnierkiewicz" wrote: > > On Tue, Jun 24, 2008 at 3:35 PM, Alan Cox wrote: > >>> > I don't see why you think it's "hard". We have timeout handlers for many > > > >>> > commands and those reset/abort just fine. > >>> > >>> They are different beasts from user-space initiated abort operation > >> > >> No they are not. They are the *same* thing in every respect. > >> > >> You have the drive in an unknown state, you want it back. If your drive > >> lost a command due to noise or a firmware flaw you have no idea about the > >> state it is actually in (supposed to be is irrelevant) > > > > I generally agree with you w.r.t. to drive side of the operations but > > the drive is only part of the equation (the host and the request states > > are the others) so 'supposed to be is' is quite relevant. > > > > Also abort request can happen i.e. while the command is being prepared > > & issued (it is done without ide_lock being taken and the timeout is not > > even armed yet) so there are additional issues to take care of. > > Yes there are. Still, I think it should be feasible which is why I > personally would prefer to drop the second patch in the series for the > time being. But then I can keep it around for reference locally and the > original infrastructure can be found in the history after all. > > Even though the patch series currently doesn't fully restore the > intended functionality, I'd like to merge it now. Command aborting Thanks, I applied everything and queued it for 2.6.27. [ including patch #2, we should re-add aborting when fixed/necessary ] > didn't work reliably (if at all) before and now, at least, a simple > ioctl won't harm a healthy system anymore. Since I think that we can add > command aborting back later, I'd like to keep the HDIO_DRIVE_RESET ioctl > even if it should currently be superfluous given SG_IO. SG_IO ATA pass-through is unsupported currently in drivers/ide/ (though nowadays it should be quite easy to add it if somebody is interested) so it is indeed the best to leave the ioctl for now. Bart -- 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/