From: Jens Axboe <axboe@suse.de>
To: Joe Thornber <thornber@btconnect.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: A possible direction for the next LVM driver
Date: Fri, 31 Aug 2001 11:20:20 +0200 [thread overview]
Message-ID: <20010831112020.K2855@suse.de> (raw)
In-Reply-To: <20010830164547.A807@btconnect.com>
In-Reply-To: <20010830164547.A807@btconnect.com>
[-- Attachment #1: Type: text/plain, Size: 883 bytes --]
On Thu, Aug 30 2001, Joe Thornber wrote:
> Hi,
>
> I'm working on the next iteration of the LVM driver, specifically
> trying to address the critism directed at the rather ugly ioctl
> interface. The code has reached the stage where it works and it's
> possible to see what I'm aiming for. I would appreciate it if people
> could spare the time to review this and give me feedback. If there is
> general agreement that this is moving in the right direction then the
> next major version of LVM may be based around a future version of this
> driver. Please CC me in replies. The code can be found at:
>
> ftp://ftp.sistina.com/pub/LVM2/device-mapper/device-mapper.tar.bz2
Looks interesting, here's patch to fix possible infinite loop in your
make_request_fn. Another quick note -- you might want to consider
slab'ifying the io_hook allocation/deallocation...
--
Jens Axboe
[-- Attachment #2: dm-1 --]
[-- Type: text/plain, Size: 513 bytes --]
--- dm.c~ Fri Aug 31 11:15:24 2001
+++ dm.c Fri Aug 31 11:16:36 2001
@@ -346,7 +346,7 @@
int r, minor = MINOR(bh->b_rdev);
if (minor >= MAX_DEVICES)
- return -ENXIO;
+ goto bad_rl;
rl;
md = _devs[minor];
@@ -359,10 +359,8 @@
ru;
r = queue_io(md, bh, rw);
- if (r < 0) {
- buffer_IO_error(bh);
- return 0;
-
+ if (r < 0)
+ goto bad_rl;
} else if (r > 0)
return 0; /* deferred successfully */
@@ -377,6 +375,7 @@
bad:
ru;
+ bad_rl:
buffer_IO_error(bh);
return 0;
}
next prev parent reply other threads:[~2001-08-31 9:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-30 15:45 A possible direction for the next LVM driver Joe Thornber
2001-08-30 15:55 ` Alan Cox
2001-08-31 9:20 ` Jens Axboe [this message]
2001-08-31 9:35 ` Joe Thornber
2001-08-31 9:37 ` Jens Axboe
2001-12-14 19:11 ` Alasdair G Kergon
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=20010831112020.K2855@suse.de \
--to=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=thornber@btconnect.com \
/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).