From: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org,
Artur Paszkiewicz <artur.paszkiewicz@intel.com>,
Konrad Dabrowski <konrad.dabrowski@intel.com>
Subject: Re: [PATCH RESEND] imsm: don't call abort_reshape() in imsm_manage_reshape()
Date: Thu, 08 Oct 2015 15:23:00 +1100 [thread overview]
Message-ID: <87612i6laz.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <56127893.6070606@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]
Artur Paszkiewicz <artur.paszkiewicz@intel.com> writes:
> Calling abort_reshape() in imsm_manage_reshape() is unnecessary in case
> of an error because it is handled by reshape_array(). Calling it when
> reshape completes successfully is also unnecessary and leads to a race
> condition:
> - reshape ends
> - mdadm calls abort_reshape() -> sets sync_action to idle
> - MD_RECOVERY_INTR is set and md_reap_sync_thread() does not finish the
> reshape
>
> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
> Signed-off-by: Konrad Dabrowski <konrad.dabrowski@intel.com>
> ---
> super-intel.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/super-intel.c b/super-intel.c
> index 95a72b6..e609e0c 100644
> --- a/super-intel.c
> +++ b/super-intel.c
> @@ -10601,7 +10601,6 @@ static int imsm_manage_reshape(
> ret_val = 1;
> abort:
> free(buf);
> - abort_reshape(sra);
>
> return ret_val;
> }
> --
> 2.1.4
Thanks for the resend.
Applied now.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
prev parent reply other threads:[~2015-10-08 4:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-05 13:18 [PATCH RESEND] imsm: don't call abort_reshape() in imsm_manage_reshape() Artur Paszkiewicz
2015-10-08 4:23 ` Neil Brown [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=87612i6laz.fsf@notabene.neil.brown.name \
--to=neilb@suse.de \
--cc=artur.paszkiewicz@intel.com \
--cc=konrad.dabrowski@intel.com \
--cc=linux-raid@vger.kernel.org \
/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).