linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: majianpeng <majianpeng@gmail.com>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: Commit "db91ff55bdf06736b" using curr_resync_completed instead of curr_resync when interrupted the resync operation
Date: Mon, 29 Oct 2012 09:47:44 +1100	[thread overview]
Message-ID: <20121029094744.1ddfb4e5@notabene.brown> (raw)
In-Reply-To: <201210251415581641823@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 989 bytes --]

On Thu, 25 Oct 2012 14:16:02 +0800 majianpeng <majianpeng@gmail.com> wrote:

> Hi Neil,
> >commit db91ff55bdf06736b849afc1b1fce5763bbb8d5d
> >    1/ If a resync is aborted we should record how far we got
> >     (recovery_cp) the last request that we know has completed
> >     (->curr_resync_completed) rather than the last request that was
> >     submitted (->curr_resync).
> If resync operation interrupted,it will call:
> >	wait_event(mddev->recovery_wait, !atomic_read(&mddev->recovery_active));
> So the curr_resync must be complete. Using curr_resync is safe.
> --------------
> majianpeng

I must have had a reason for that patch.  Unfortunately the change log isn't
the best...

If the resync aborted cleanly with no errors (e.g. while stopping the array),
then I agree.
However if some read error was involved I'm not so sure.  I would have to
examine the code closely, which I don't feel up to at the moment (plenty of
other things to do).


NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

      reply	other threads:[~2012-10-28 22:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-25  6:16 Commit "db91ff55bdf06736b" using curr_resync_completed instead of curr_resync when interrupted the resync operation majianpeng
2012-10-28 22:47 ` NeilBrown [this message]

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=20121029094744.1ddfb4e5@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=majianpeng@gmail.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).