Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261594AbVB1NgT (ORCPT ); Mon, 28 Feb 2005 08:36:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261599AbVB1Neq (ORCPT ); Mon, 28 Feb 2005 08:34:46 -0500 Received: from higgs.elka.pw.edu.pl ([194.29.160.5]:57230 "EHLO higgs.elka.pw.edu.pl") by vger.kernel.org with ESMTP id S261595AbVB1NeA (ORCPT ); Mon, 28 Feb 2005 08:34:00 -0500 From: Bartlomiej Zolnierkiewicz To: Tejun Heo Subject: Re: [patch ide-dev 8/9] make ide_task_ioctl() use REQ_DRIVE_TASKFILE Date: Sun, 27 Feb 2005 17:31:29 +0100 User-Agent: KMail/1.7.1 Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <20050227073608.GA30796@htj.dyndns.org> In-Reply-To: <20050227073608.GA30796@htj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502271731.29448.bzolnier@elka.pw.edu.pl> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1244 Lines: 27 On Sunday 27 February 2005 08:36, Tejun Heo wrote: > Hello, Bartlomiej. > > This patch should be modified to use flagged taskfile if the > task_end_request_fix patch isn't applied. As non-flagged taskfile > won't return valid result registers, TASK ioctl users won't get the > correct register output. Nope, it works just fine because REQ_DRIVE_TASK used only no-data protocol, please check task_no_data_intr(). > IMHO, this flag-to-get-result-registers thing is way too subtle. How > about keeping old behavior by just not copying out register outputs in > ide_taskfile_ioctl() in applicable cases instead of not reading > registers when ending commands? That is, unless there's some > noticeable performance impacts I'm not aware of. This would miss whole point of not _reading_ these registers (IO is slow). IMHO new flags denoting {in,out} registers should be added (to to share them with libata) so new code can be sane and old flags would map on new flags when needed. - 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/