From: Andrew Morton <akpm@osdl.org>
To: Alasdair G Kergon <agk@redhat.com>
Cc: linux-kernel@vger.kernel.org, kevcorry@us.ibm.com, zhaoqian@aaastor.com
Subject: Re: [PATCH] device-mapper: dm-raid1: Limit bios to size of mirror region
Date: Fri, 1 Jul 2005 00:26:26 -0700 [thread overview]
Message-ID: <20050701002626.630c2b7d.akpm@osdl.org> (raw)
In-Reply-To: <20050630181931.GL4211@agk.surrey.redhat.com>
Alasdair G Kergon <agk@redhat.com> wrote:
>
> Set the target's split_io field when building a dm-mirror device so
> incoming bios won't span the mirror's internal regions. Without
> this, regions can be accessed while not holding correct locks and data
> corruption is possible.
>
> Reported-By: "Zhao Qian" <zhaoqian@aaastor.com>
> From: Kevin Corry <kevcorry@us.ibm.com>
> Signed-Off-By: Alasdair G Kergon <agk@redhat.com>
>
> --- 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-mirror-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?
next prev parent reply other threads:[~2005-07-01 7:30 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 [this message]
2005-07-01 12:56 ` Kevin Corry
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=20050701002626.630c2b7d.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=agk@redhat.com \
--cc=kevcorry@us.ibm.com \
--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®