From: Czigola Gabor <czigola@elte.hu>
To: linux-kernel@vger.kernel.org
Subject: root MD array is still in use upon shutdown possible fix
Date: Fri, 6 Oct 2006 20:26:42 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.0610062006460.25341@kamorka> (raw)
Hi!
When my root filesystem is on an MD (RAID5) array, I can't cleanly shut
down (trying to change the array ro, even when nothing else than the
kernel threads and init and one bash are running, and the root fs is ro
remounted), because I've got "md: md0 still in use" kernel messages.
Usually it doesn't cause any problems, but it possibly could leave the
array in an inconsistent state (resync required after reboot).
I made a patch for md.c, based on the thread on "Can't get md array to
shut down cleanly" started at 2006-07-06 on linux-raid@vger.
The problem is reproducible on kernel v. 2.6.17.5 and 2.6.17.11, this
patch is made for the latter.
Please check this patch, for me it does work, but I'm not sure, that it
doesn't break something else. I'm not on the list, please CC me.
Here is the diff for drivers/md/md.c:
2789c2789
< if (atomic_read(&mddev->active)>2) {
---
> if (atomic_read(&mddev->active)>2 && !ro) {
--
Czigola, Gabor
next reply other threads:[~2006-10-06 18:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-06 18:26 Czigola Gabor [this message]
2006-10-09 0:40 ` Neil Brown
2006-10-16 1:56 ` Czigola Gabor
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=Pine.LNX.4.64.0610062006460.25341@kamorka \
--to=czigola@elte.hu \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®