All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: FabF <Fabian.Frederick@skynet.be>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [2.6.6-mm4-ff1] I/O context isolation
Date: Fri, 21 May 2004 09:53:42 +0200	[thread overview]
Message-ID: <20040521075342.GP1952@suse.de> (raw)
In-Reply-To: <1085125564.8071.23.camel@bluerhyme.real3>

On Fri, May 21 2004, FabF wrote:
> On Fri, 2004-05-21 at 09:38, Nick Piggin wrote:
> > FabF wrote:
> > > Jens,
> > > 
> > > 	Here's ff1 patchset to have generic I/O context.
> > > ff1 : Export io context operations from blkdev/ll_rw_blk (ok)
> > > ff2 : Make io_context generic plateform by importing IO stuff from
> > > as_io.
> > > 
> > 
> > Can I just ask why you want as_io_context in generic code?
> > It is currently nicely hidden away in as-iosched.c where
> > nobody else needs to ever see it.
> I do want I/O context to be generic not the whole as_io.
> That export should bring:
> 	-All elevators to use io_context

For?

> 	-source tree to be more self-explanatory
> 	-have a stronger elevator interface

Those aren't real arguments :-)

> > > 	AFAICS, cfq_queue for instance could disappear when using io_context
> > > but I think elv_data should remain elevator side....
> > > I don't want to go in the wild here so if you've got suggestions, don't
> > > hesitate ;)
> > > 
> > 
> > cfq_queue is per-queue-per-process. io_context is just
> > per-process, so it isn't a trivial replacement.
> But I guess we can merge that stuff to have "a one way, one place" code
> rather than repeat code in all elv.

That's another pit fall, don't design for a need that isn't there. Using
io contexts in cfq does not get any easier with the code moved to
iocontext.c file, it's fine where it is.

-- 
Jens Axboe


  reply	other threads:[~2004-05-21  7:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-21  7:24 [2.6.6-mm4-ff1] I/O context isolation FabF
2004-05-21  7:38 ` Nick Piggin
2004-05-21  7:46   ` FabF
2004-05-21  7:53     ` Jens Axboe [this message]
2004-05-21  8:18       ` FabF
2004-05-21  7:57     ` Nick Piggin
2004-05-21  8:05       ` FabF
2004-05-21  8:11       ` Jens Axboe
2004-05-21  7:51   ` Jens Axboe

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=20040521075342.GP1952@suse.de \
    --to=axboe@suse.de \
    --cc=Fabian.Frederick@skynet.be \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.