All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Neil Brown <neilb@suse.de>
Cc: Dan Williams <dan.j.williams@intel.com>,
	linux@horizon.com, linux-raid@vger.kernel.org
Subject: Re: [PATCH] md: fix raid5 'repair' operations
Date: Fri, 02 May 2008 15:17:49 +0400	[thread overview]
Message-ID: <481AF85D.4040103@msgid.tls.msk.ru> (raw)
In-Reply-To: <18458.49717.471295.285149@notabene.brown>

Neil Brown wrote:
> On Thursday May 1, dan.j.williams@intel.com wrote:
>> commit bd2ab67030e9116f1e4aae1289220255412b37fd "md: close a livelock
>> window in handle_parity_checks5" introduced a bug in handling 'repair'
>> operations.  After a repair operation completes we clear the state bits
>> tracking this operation.  However, they are cleared too early and this
>> results in the code deciding to re-run the parity check operation.  Since
>> we have done the repair in memory the second check does not find a mismatch
>> and thus does not do a writeback.
> 
> yes....
> I must admit that I find that code fairly hard to make sense of, but I
> can see how it was failing before and how this fixes it, and testing
> confirms that, so I suspect it is right.
> 
> I cannot help feeling that there must be some way to simplify all
> those .pending and .complete bits and make it somewhat clearer, but I
> haven't been able to figure out how :-(
> 
> So: Acked-by: NeilBrown <neilb@suse.de>
> 
> I'm heading for a weekend, but feel free to send this to akpm.

Hmm.  Should this be sent to stable- as well?  I were just biten by
this very bug here, and after applying the patch and rebooting the
problem went away...  2.6.25.0 here.

/mjt

  reply	other threads:[~2008-05-02 11:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-02  3:15 [PATCH] md: fix raid5 'repair' operations Dan Williams
2008-05-02  7:26 ` Neil Brown
2008-05-02 11:17   ` Michael Tokarev [this message]
2008-05-02 18:34   ` Dan Williams
2008-05-02 16:24 ` George Spelvin
2008-05-02 18:36   ` Dan Williams
  -- strict thread matches above, loose matches on Subject: below --
2008-05-02 21:27 Dan Williams

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=481AF85D.4040103@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=dan.j.williams@intel.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=linux@horizon.com \
    --cc=neilb@suse.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.