linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
To: Andrew Morton <akpm@digeo.com>
Cc: <alan@lxorguk.ukuu.org.uk>, <andre@linux-ide.org>,
	<axboe@suse.de>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] 2.5.67-ac2 direct-IO for IDE taskfile ioctl (0/4)
Date: Thu, 24 Apr 2003 00:58:48 +0200 (MET DST)	[thread overview]
Message-ID: <Pine.SOL.4.30.0304240042550.22047-100000@mion.elka.pw.edu.pl> (raw)
In-Reply-To: <20030423153500.0d99b4d3.akpm@digeo.com>


On Wed, 23 Apr 2003, Andrew Morton wrote:

> Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl> wrote:
> >
> >
> > Hey,
> >
> > Another bunch of patches:
> >
> > (1) Enhance bio_(un)map_user() and add blk_rq_bio_prep().
> > (2) Pass bdev to IDE ioctl handlers.
> > (3) Add support for rq->bio based taskfile.
> > (4) Use direct-IO in ide_taskfile_ioctl() and in ide_cmd_ioctl().
>
> Dumb question: what does all this code actually do?

Code actually implements 'subject' so direct IO to user memory
for IDE specific taskfile ioctl. As a side effect it also cleans
scsi_ioctl.c a little.

>
> It appears to be implementing an IDE-specific ioctl() which performs bulk
> IO direct to/from userspace.  But that seems to be equivalent to O_DIRECT
> access to /dev/hda.

No, it is not equivalent, it does much, much more then O_DIRECT.
And this ioctl has been here for ages, only now it gets direct IO.

> What is special about the IDE ioctl approach?
>
> Thanks.

It can be used for _any_ access to IDE drive, even for some diagnostic
or vendor specific commands. User decides on transfer protocol
(PIO/DMA/queued DMA), addressing mode (CHS/LBA28/LBA48) etc.
User also gets drive status after command completion etc.

The main goal of the patch is to bring internal kernel handling
of this ioctl closer to kernel handling of normal fs IO, so only
_one_ common code will be used in future (benefits desribed in annonce).

Hope this helps...
--
Bartlomiej





  parent reply	other threads:[~2003-04-23 22:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-23 17:37 [PATCH] 2.5.67-ac2 direct-IO for IDE taskfile ioctl (0/4) Bartlomiej Zolnierkiewicz
2003-04-23 17:38 ` [PATCH] 2.5.67-ac2 direct-IO for IDE taskfile ioctl (1/4) Bartlomiej Zolnierkiewicz
2003-04-24  8:23   ` Jens Axboe
2003-04-24 14:46     ` Bartlomiej Zolnierkiewicz
2003-04-24 15:47     ` [PATCH] 2.5.68 fix mismatched access_ok() checks in sg_io() Bartlomiej Zolnierkiewicz
2003-04-24 17:31       ` Jens Axboe
2003-04-23 17:39 ` [PATCH] 2.5.67-ac2 direct-IO for IDE taskfile ioctl (2/4) Bartlomiej Zolnierkiewicz
2003-04-23 17:39 ` [PATCH] 2.5.67-ac2 direct-IO for IDE taskfile ioctl (3/4) Bartlomiej Zolnierkiewicz
2003-04-23 17:40 ` [PATCH] 2.5.67-ac2 direct-IO for IDE taskfile ioctl (4/4) Bartlomiej Zolnierkiewicz
2003-04-24  7:56   ` Jens Axboe
2003-04-23 18:24 ` [PATCH] 2.5.67-ac2 direct-IO for IDE taskfile ioctl (0/4) [resend] Bartlomiej Zolnierkiewicz
2003-04-23 22:35 ` [PATCH] 2.5.67-ac2 direct-IO for IDE taskfile ioctl (0/4) Andrew Morton
2003-04-23 22:09   ` Alan Cox
2003-04-23 22:58   ` Bartlomiej Zolnierkiewicz [this message]
2003-04-23 23:13   ` Andries Brouwer
2003-04-23 23:20     ` Andrew Morton
2003-04-24  0:02       ` Bartlomiej Zolnierkiewicz
2003-04-24  6:55         ` Jens Axboe
2003-04-24  2:27       ` Andre Hedrick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SOL.4.30.0304240042550.22047-100000@mion.elka.pw.edu.pl \
    --to=b.zolnierkiewicz@elka.pw.edu.pl \
    --cc=akpm@digeo.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=andre@linux-ide.org \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).