From: NeilBrown <neilb@suse.de>
To: Adam Kwolek <adam.kwolek@intel.com>
Cc: linux-raid@vger.kernel.org, ed.ciechanowski@intel.com,
marcin.labun@intel.com, dan.j.williams@intel.com
Subject: Re: [PATCH 2/2] imsm: FIX: Use first map only in migration record disk operations
Date: Tue, 13 Dec 2011 13:26:32 +1100 [thread overview]
Message-ID: <20111213132632.39bfe8aa@notabene.brown> (raw)
In-Reply-To: <20111212110753.8849.40342.stgit@gklab-128-013.igk.intel.com>
[-- Attachment #1: Type: text/plain, Size: 2132 bytes --]
On Mon, 12 Dec 2011 12:07:53 +0100 Adam Kwolek <adam.kwolek@intel.com> wrote:
> 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>
Thanks.
I've applied this and the others, including the "make everything" fix that I
somehow missed before.
I've pushed it all out to the git tree. Could you please check that I
haven't missed anything.
Thanks,
NeilBrown
> ---
>
> 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;
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2011-12-13 2:26 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 ` [PATCH 2/2] imsm: FIX: Use first map only in migration record disk operations Adam Kwolek
2011-12-13 2:26 ` NeilBrown [this message]
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=20111213132632.39bfe8aa@notabene.brown \
--to=neilb@suse.de \
--cc=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 \
/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