public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Rik van Riel <riel@conectiva.com.br>
Cc: linux-kernel@vger.kernel.org, linux-lvm@sistina.com
Subject: Re: 2.4.3-ac{6,7} LVM hang
Date: Mon, 16 Apr 2001 22:41:02 +0200	[thread overview]
Message-ID: <20010416224102.O9539@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.21.0104161653140.14442-100000@imladris.rielhome.conectiva>
In-Reply-To: <Pine.LNX.4.21.0104161653140.14442-100000@imladris.rielhome.conectiva>; from riel@conectiva.com.br on Mon, Apr 16, 2001 at 04:55:15PM -0300

[-- Attachment #1: Type: text/plain, Size: 684 bytes --]

On Mon, Apr 16 2001, Rik van Riel wrote:
> Hi,
> 
> 2.4.3-ac4 seems to work great on my test box (UP K6-2 with SCSI
> disk), but 2.4.3-ac6 and 2.4.3-ac7 hang pretty hard when I try
> to access any of the logical volumes on my test box.
> 
> The following changelog entry in Linus' changelog suggests me
> whom to bother:   ;)
>  - Jens Axboe: LVM and loop fixes

Heh :-). I'd categorize the lvm fixes as "obviously right", haven't
checked why they seem to break for some people. Maybe the minor indexing
of LVM is broken, in which case attached patch should make it go again
(and the LVM crew needs to look into that). Also fixes a slight error in
the IO error path.

-- 
Jens Axboe


[-- Attachment #2: lvm-eout-2 --]
[-- Type: text/plain, Size: 499 bytes --]

--- /opt/kernel/linux-2.4.4-pre3/drivers/md/lvm.c	Sun Apr 15 16:24:13 2001
+++ drivers/md/lvm.c	Mon Apr 16 22:40:28 2001
@@ -1476,7 +1476,7 @@
  */
 static int lvm_map(struct buffer_head *bh, int rw)
 {
-	int minor = MINOR(bh->b_rdev);
+	int minor = MINOR(bh->b_dev);
 	int ret = 0;
 	ulong index;
 	ulong pe_start;
@@ -1675,8 +1675,11 @@
 			       struct buffer_head *bh)
 {
 	int ret = lvm_map(bh, rw);
-	if (ret < 0)
+
+	if (ret < 0) {
+		ret = 0;
 		buffer_IO_error(bh);
+	}
 	return ret;
 }
 

  reply	other threads:[~2001-04-16 20:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-16 19:55 2.4.3-ac{6,7} LVM hang Rik van Riel
2001-04-16 20:41 ` Jens Axboe [this message]
2001-04-19 21:13 ` [linux-lvm] " Arjan Filius
2001-04-19 21:51   ` Jens Axboe
2001-04-20  1:05     ` Ulrich Drepper
2001-04-20  2:02       ` Rik van Riel
2001-04-20  8:46         ` Jens Axboe
2001-04-20  8:00     ` Arjan Filius

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=20010416224102.O9539@suse.de \
    --to=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-lvm@sistina.com \
    --cc=riel@conectiva.com.br \
    /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