mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kevin Corry <kevcorry@us.ibm.com>
To: Andrew Morton <akpm@osdl.org>, zhaoqian@aaastor.com
Cc: Alasdair G Kergon <agk@redhat.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] device-mapper: dm-raid1: Limit bios to size of mirror region
Date: Fri, 1 Jul 2005 07:56:35 -0500	[thread overview]
Message-ID: <200507010756.36015.kevcorry@us.ibm.com> (raw)
In-Reply-To: <20050701002626.630c2b7d.akpm@osdl.org>

On Fri July 1 2005 2:26 am, Andrew Morton wrote:
> Alasdair G Kergon <agk@redhat.com> wrote:
> > --- diff/drivers/md/dm-raid1.c 2005-06-17 20:48:29.000000000 +0100
> > +++ source/drivers/md/dm-raid1.c 2005-06-29 21:12:13.000000000 +0100
> > @@ -1060,6 +1060,7 @@
> >   }
> >
> >   ti->private = ms;
> > +  ti->split_io = ms->rh->region_size;
> >
> >   r = kcopyd_client_create(DM_IO_PAGES, &ms->kcopyd_client);
> >   if (r) {
>
> Ahem.
>
> drivers/md/dm-raid1.c: In function `mirror_ctr':
> drivers/md/dm-raid1.c:1072: invalid type argument of `->'
>
> ---
> devel/drivers/md/dm-raid1.c~device-mapper-dm-raid1-limit-bios-to-size-of-mi
>rror-region-fix 2005-07-01 00:25:26.000000000 -0700 +++
> devel-akpm/drivers/md/dm-raid1.c 2005-07-01 00:25:26.000000000 -0700 @@
> -1060,7 +1060,7 @@ static int mirror_ctr(struct dm_target *
>   }
>
>   ti->private = ms;
> -  ti->split_io = ms->rh->region_size;
> +  ti->split_io = ms->rh.region_size;
>
>   r = kcopyd_client_create(DM_IO_PAGES, &ms->kcopyd_client);
>   if (r) {
>
> How well tested was this?

Ehh...oops...sorry about that. :(

Zhao, you reported this issue originally. Have you been able to test this yet 
to see if it fixes the corruption problem you were describing? Or can you 
give us a test-case that I can run?

-- 
Kevin Corry
kevcorry@us.ibm.com
http://www.ibm.com/linux/
http://evms.sourceforge.net/

      reply	other threads:[~2005-07-01 13:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-30 18:19 Alasdair G Kergon
2005-07-01  7:26 ` Andrew Morton
2005-07-01 12:56   ` Kevin Corry [this message]

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=200507010756.36015.kevcorry@us.ibm.com \
    --to=kevcorry@us.ibm.com \
    --cc=agk@redhat.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zhaoqian@aaastor.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

all inboxes | Powered by JetHome®