linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.com>
To: Markus Stockhausen <stockhausen@collogia.de>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>
Subject: Re: raid5: handle_stripe_dirtying
Date: Wed, 5 Aug 2015 07:31:43 +1000	[thread overview]
Message-ID: <20150805073143.6e30ad76@noble> (raw)
In-Reply-To: <12EF8D94C6F8734FB2FF37B9FBEDD1735FCD417B@EXCHANGE.collogia.de>

On Tue, 4 Aug 2015 18:32:37 +0000 Markus Stockhausen
<stockhausen@collogia.de> wrote:

> Hi Neil,
> 
> before sending a wrong patch. Could you help me to understand the reason 
> for an unconditional singular 

Sending a wrong patch is not such a bad thing - it would help me know
what you are thinking, and so reduce guess-work :-)

> 
> set_bit(STRIPE_HANDLE, &sh->state); 
> 
> in function handle_stripe_dirtying of raid5.c? It seems to be there since
> its introduction somewhere 8 years ago - patch "raid5: refactor handle_stripe5 
> and handle_stripe6 (v3)". 
> 
> If I understand the idea behind the flag right it is required to ensure 
> handling of the stripe in the next handle_stripe() run. That would only make
> sense if we set it unconditionally OR depending on some changes to the
> stripe. The above function does both. See a few lines below in the deep
> if-blocks.

So I'm guessing that you want to remove one of those?  Probably
justified.

That duplication goes back to
 Commit: 396a6123577d ("v2.4.5.4 -> v2.4.5.5")

I think your understanding of STRIPE_HANDLE is pretty spot-on.

NeilBrown

> 
> Thanks in advance.
> 
> Markus


      reply	other threads:[~2015-08-04 21:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-04 18:32 raid5: handle_stripe_dirtying Markus Stockhausen
2015-08-04 21:31 ` 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=20150805073143.6e30ad76@noble \
    --to=neilb@suse.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=stockhausen@collogia.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;
as well as URLs for NNTP newsgroup(s).