From: Neil Brown <neilb@suse.de>
To: Brett Russ <bruss@netezza.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: bug/race in md causing device to wedge in busy state
Date: Thu, 24 Dec 2009 10:12:56 +1100 [thread overview]
Message-ID: <20091224101256.39d2d09a@notabene> (raw)
In-Reply-To: <4B2983AE.8020002@netezza.com>
On Wed, 16 Dec 2009 20:04:46 -0500
Brett Russ <bruss@netezza.com> wrote:
> I'm seeing cases where an attempted remove of a manually faulted disk
> from an existing RAID unit can fail with mdadm reporting "Device or
> resource busy". I've reduced the problem down to the smallest set that
> reliably reproduces the issue:
Thanks for the very detailed report.
Can you please see if the following patch fixes the problem.
When an array wants to resync but is waiting for other arrays
on the same devices to finish their resync, it does not abort the
resync attempt properly when an error is reported.
This should fix that.
Thanks,
NeilBrown
diff --git a/drivers/md/md.c b/drivers/md/md.c
index d2aff72..42fa446 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -6504,6 +6504,8 @@ void md_do_sync(mddev_t *mddev)
set_bit(MD_RECOVERY_INTR, &mddev->recovery);
goto skip;
}
+ if (test_bit(MD_RECOVERY_INTR, &mddev->recovery))
+ goto skip;
for_each_mddev(mddev2, tmp) {
if (mddev2 == mddev)
continue;
next prev parent reply other threads:[~2009-12-23 23:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-17 1:04 bug/race in md causing device to wedge in busy state Brett Russ
2009-12-22 21:48 ` Brett Russ
2009-12-23 23:12 ` Neil Brown [this message]
2010-01-08 15:18 ` Brett Russ
2010-01-29 14:50 ` Brett Russ
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=20091224101256.39d2d09a@notabene \
--to=neilb@suse.de \
--cc=bruss@netezza.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).