From: Alasdair G Kergon <agk@redhat.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, Kevin Corry <kevcorry@us.ibm.com>,
Zhao Qian <zhaoqian@aaastor.com>
Subject: [PATCH] device-mapper: dm-raid1: Limit bios to size of mirror region
Date: Thu, 30 Jun 2005 19:19:31 +0100 [thread overview]
Message-ID: <20050630181931.GL4211@agk.surrey.redhat.com> (raw)
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) {
next reply other threads:[~2005-06-30 18:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-30 18:19 Alasdair G Kergon [this message]
2005-07-01 7:26 ` Andrew Morton
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=20050630181931.GL4211@agk.surrey.redhat.com \
--to=agk@redhat.com \
--cc=akpm@osdl.org \
--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®