From: Adam Kwolek <adam.kwolek@intel.com>
To: neilb@suse.de
Cc: linux-raid@vger.kernel.org, ed.ciechanowski@intel.com,
marcin.labun@intel.com, dan.j.williams@intel.com
Subject: [PATCH 2/2] imsm: FIX: Use first map only in migration record disk operations
Date: Mon, 12 Dec 2011 12:07:53 +0100 [thread overview]
Message-ID: <20111212110753.8849.40342.stgit@gklab-128-013.igk.intel.com> (raw)
In-Reply-To: <20111212110745.8849.76773.stgit@gklab-128-013.igk.intel.com>
This patch is addition to patch:
"imsm: FIX: Limit migration record operation by disk slot not by index"
Location of migration record (2 first slots) should be taken on up to date
information. It is in first map.
Change slot verification to use first map only.
Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
---
super-intel.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/super-intel.c b/super-intel.c
index d90d96b..bfbaf10 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -1178,8 +1178,8 @@ void examine_migr_rec_imsm(struct intel_super *super)
printf("\nMigration Record Information:");
- /* map under migration */
- map = get_imsm_map(dev, MAP_1);
+ /* first map under migration */
+ map = get_imsm_map(dev, MAP_0);
if (map)
slot = get_imsm_disk_slot(map, super->disks->index);
if ((map == NULL) || (slot > 1) || (slot < 0)) {
@@ -2131,7 +2131,7 @@ static int load_imsm_migr_rec(struct intel_super *super, struct mdinfo *info)
*/
if (dev == NULL)
return 0;
- map = get_imsm_map(dev, MAP_1);
+ map = get_imsm_map(dev, MAP_0);
if (info) {
for (sd = info->devs ; sd ; sd = sd->next) {
@@ -2257,7 +2257,7 @@ static int write_imsm_migr_rec(struct supertype *st)
dev = get_imsm_dev(super, super->current_vol < 0 ? 0 :
super->current_vol);
- map = get_imsm_map(dev, MAP_X);
+ map = get_imsm_map(dev, MAP_0);
for (sd = super->disks ; sd ; sd = sd->next) {
int slot;
next prev parent reply other threads:[~2011-12-12 11:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-12 11:07 [PATCH 1/2] imsm: FIX: Limit migration record operation by disk slot not by index Adam Kwolek
2011-12-12 11:07 ` Adam Kwolek [this message]
2011-12-13 2:26 ` [PATCH 2/2] imsm: FIX: Use first map only in migration record disk operations NeilBrown
2011-12-13 7:54 ` Kwolek, Adam
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=20111212110753.8849.40342.stgit@gklab-128-013.igk.intel.com \
--to=adam.kwolek@intel.com \
--cc=dan.j.williams@intel.com \
--cc=ed.ciechanowski@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=marcin.labun@intel.com \
--cc=neilb@suse.de \
/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