mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Karl Vogel <karl.vogel@seagha.com>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: Kevin Corry <kevcorry@us.ibm.com>, linux-kernel@vger.kernel.org
Subject: Re: LVM on md0: raid0_make_request bug: can't convert block acros s chunks or bigger than 64k
Date: Sat, 25 Oct 2003 22:23:55 +0200	[thread overview]
Message-ID: <1067113434.1179.7.camel@kvo.local.org> (raw)
In-Reply-To: <16276.31028.9351.994009@notabene.cse.unsw.edu.au>

On Tue, 2003-10-21 at 02:09, Neil Brown wrote:

> The problem is that dm is not honouring the merge_bvec_fn that
> raid0 has set.
> 
> This patch might fix it, but I'm not very familiar with the dm code,
> so I make no promises.
> 
> (I wonder why you are running LVM on top of raid0 given that lvm
> contains raid0 functionality).
> 
> NeilBrown
> 
> 
> 
>  ----------- Diffstat output ------------
>  ./drivers/md/dm-table.c |    5 +++++
>  1 files changed, 5 insertions(+)
> 
> diff ./drivers/md/dm-table.c~current~ ./drivers/md/dm-table.c
> --- ./drivers/md/dm-table.c~current~	2003-10-21 10:05:29.000000000
> +1000
> +++ ./drivers/md/dm-table.c	2003-10-21 10:06:27.000000000 +1000
> @@ -489,6 +489,11 @@ int dm_get_device(struct dm_target *ti, 
>  		rs->max_sectors =
>  			min_not_zero(rs->max_sectors, q->max_sectors);
>  
> +		if (q->merge_bvec_fn)
> +			rs->max_sectors =
> +				min_not_zero(rs->max_sectors,
> PAGE_SIZE>>9);
> +			
> +
>  		rs->max_phys_segments =
>  			min_not_zero(rs->max_phys_segments,
>  				     q->max_phys_segments);


I noticed in the 2.6.0-test9 notes the following:

---
Neil Brown:
  o md -  Use sector rather than block numbers when splitting raid0
    requests
---

I'm not sure if this is related to the problem I was experiencing?!
Anyway this doesn't fix the problem I was having. I still get the errors
with -test9. Above patch to dm-table.c works for me.

Just thought I'd mention this..



  parent reply	other threads:[~2003-10-25 20:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-20 20:35 LVM on md0: raid0_make_request bug: can't convert block across " Karl Vogel
2003-10-20 21:06 ` Kevin Corry
2003-10-20 21:52   ` Karl Vogel
2003-10-21  0:09     ` Neil Brown
2003-10-21 13:41       ` Kevin Corry
2003-10-21 16:29         ` Karl Vogel
2003-10-21 16:41           ` Karl Vogel
2003-10-25 20:23       ` Karl Vogel [this message]
2003-10-27 22:34         ` LVM on md0: raid0_make_request bug: can't convert block acros s " Neil Brown
2003-10-21  7:24 Karl Vogel

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=1067113434.1179.7.camel@kvo.local.org \
    --to=karl.vogel@seagha.com \
    --cc=kevcorry@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.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 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®