From: Dan Williams <dan.j.williams@intel.com>
To: Adam Kwolek <adam.kwolek@intel.com>
Cc: neilb@suse.de, linux-raid@vger.kernel.org,
ed.ciechanowski@intel.com, wojciech.neubauer@intel.com
Subject: Re: [PATCH 2/2] imsm: FIX: Be more patient during loading matadata
Date: Tue, 12 Apr 2011 17:44:31 -0700 [thread overview]
Message-ID: <BANLkTinryn7FTdXMHx9HsMSQqpgykWW+Gg@mail.gmail.com> (raw)
In-Reply-To: <20110412125128.7062.38008.stgit@gklab-128-013.igk.intel.com>
On Tue, Apr 12, 2011 at 5:51 AM, Adam Kwolek <adam.kwolek@intel.com> wrote:
> Sometimes occurs that metadata cannot be loaded e.g. wrong check sum
> It can happen due to metadata update racing with mdmon condition.
> If mpb loading is tried again, it is loaded successfully.
> Try to load metadata again before really giving up.
>
> Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
> ---
>
> super-intel.c | 10 ++++++++--
> 1 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/super-intel.c b/super-intel.c
> index dc5e34e..d23267a 100644
> --- a/super-intel.c
> +++ b/super-intel.c
> @@ -2773,8 +2773,14 @@ load_and_parse_mpb(int fd, struct intel_super *super, char *devname, int keep_fd
> int err;
>
> err = load_imsm_mpb(fd, super, devname);
> - if (err)
> - return err;
> + if (err) {
> + /* try to load mpb again,
> + * in case of mdmon race we could have more luck...
> + */
> + err = load_imsm_mpb(fd, super, devname);
> + if (err)
> + return err;
> + }
> err = load_imsm_disk(fd, super, devname, keep_fd);
> if (err)
> return err;
This is semi-duplicates the check we already do after returning from
load_and_parse_mpb in load_super_imsm_all. I'm curious, are you
hitting this path from load_super_imsm? If the container is assembled
we should be loading from the container, if the container is not
available then mdmon can't be running and checksum errors are real.
--
Dan
--
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
next prev parent reply other threads:[~2011-04-13 0:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-12 12:51 [PATCH 1/2] FIX: Use successfully loaded metadata only Adam Kwolek
2011-04-12 12:51 ` [PATCH 2/2] imsm: FIX: Be more patient during loading matadata Adam Kwolek
2011-04-13 0:44 ` Dan Williams [this message]
2011-04-13 6:40 ` Kwolek, Adam
2011-04-13 18:56 ` Dan Williams
2011-04-14 7:57 ` Kwolek, Adam
2011-04-14 8:08 ` NeilBrown
2011-04-14 8:36 ` Dan Williams
2011-04-14 7:50 ` [PATCH 1/2] FIX: Use successfully loaded metadata only NeilBrown
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=BANLkTinryn7FTdXMHx9HsMSQqpgykWW+Gg@mail.gmail.com \
--to=dan.j.williams@intel.com \
--cc=adam.kwolek@intel.com \
--cc=ed.ciechanowski@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
--cc=wojciech.neubauer@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;
as well as URLs for NNTP newsgroup(s).