From: "Adam J. Richter" <adam@yggdrasil.com>
To: joe@fib011235813.fsnet.co.uk
Cc: axboe@suse.de, linux-kernel@vger.kernel.org
Subject: Re: Patch(2.5.45): move io_restrictions to blkdev.h
Date: Sun, 3 Nov 2002 14:03:14 -0800 [thread overview]
Message-ID: <200211032203.OAA08254@adam.yggdrasil.com> (raw)
>On Sun, Nov 03, 2002 at 12:48:30AM -0800, Adam J. Richter wrote:
>> Great. The only thing I was going to do that might depend
>> on this patch is try to port /dev/loop to device mapper, and I may
>> be able to eliminate the affected code anyhow.
>This makes me uneasy, do you mean you want to:
>i) make a 'loop' target, if so why ?
I believe I can eliminate some block device initialization
code and also eliminate some ioctls that allow for a lot of number
configured states for a loop device and bloat loop.c with some
features nobody uses (for example, there is an unused facility to
"name" each loop device). I would like to invent as little new API as
possible. Also, of much less importance, adopting this change would
relinquish a major device number.
I was going to have the map function always return 0 (i.e., it
will submit the IO itself). Given device-mapper with linear mapping,
I don't think anyone will need to use loop just to map a device to a
device with no data transformation, so there is no need for loop
optimize for that case.
If you want to point out specific technical problems with this
or have other advice, great. Otherwise, I expect that just trying to
implement it will either show me some problem with it or will result
in a patch that should clarify what I am talking about for you.
By the way, one change to DM that might be useful for other
targets as well as loop.c would be to move the map function from
target_type to dm_target. This can potentially be used to eliminate
some branches in the IO path based on configuration options that were
passed to the constructor function. For loop.c, I am thinking of
file backed versus device backed. I could also imagine raid schemes
that might optimize their map functions differently for different
segment sizes.
Adam J. Richter __ ______________ 575 Oroville Road
adam@yggdrasil.com \ / Milpitas, California 95035
+1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
next reply other threads:[~2002-11-03 21:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-03 22:03 Adam J. Richter [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-11-03 8:48 Adam J. Richter
2002-11-03 16:23 ` Joe Thornber
2002-11-02 18:51 Adam J. Richter
2002-11-02 21:40 ` 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=200211032203.OAA08254@adam.yggdrasil.com \
--to=adam@yggdrasil.com \
--cc=axboe@suse.de \
--cc=joe@fib011235813.fsnet.co.uk \
--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
all inboxes | Powered by JetHome®