linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Dan Williams <dan.j.williams@intel.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: [RFC PATCH 0/2] a couple of readonly handling fixups
Date: Mon, 19 Jan 2009 10:07:43 +1100	[thread overview]
Message-ID: <18803.46655.134295.118861@nbeee.brown> (raw)
In-Reply-To: message from Dan Williams on Thursday January 8

On Thursday January 8, dan.j.williams@intel.com wrote:
> The BUG_ON(mddev->ro == 1) in md_write_start can be triggered under two
> circumstances in recent kernels.  One was reported by Justin Maggard:

Hi Dan,
 Thanks for following up with this.....

(I meant to send this over a week ago, but I've been on vaction
in Tasmania and my mobile has no coverage....)

> 
> 1) Create an md array with >= 1 disk
> 2) Start a task writing to the array ("dd if=/dev/zero of=/dev/md0
> bs=1M count=10000 &" does the trick for me)
> 3) Force an improper reboot with reboot -fn
> 
> ...the other was discovered while investigating this issue.
> 
> 1) Set a raid5 readyonly with mdadm
> 2) Set the array writable with blockdev
> 3) Attempt to write to the array
> 
> ---
> 
> Dan Williams (2):
>       Revert "Restore force switch of md array to readonly at reboot time."

I'm not comfortable with this.  That patch itself fixed a regression.
In some situations, the reboot notifier is the only thing that makes
sure the array is marked clean at shutdown time.  This revert
effectively disables that so sometimes a reboot will leave an array
dirty, which is not good.

There must be some other recent change that causes IO still to be in
flight this late.  Maybe I'll try to track it down.

>       md: set mddev readonly flag on blkdev BLKROSET ioctl

This one I'm happy with.  I'll make sure it gets through.

Thanks,
NeilBrown

  parent reply	other threads:[~2009-01-18 23:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-08  7:24 [RFC PATCH 0/2] a couple of readonly handling fixups Dan Williams
2009-01-08  7:24 ` [PATCH 1/2] md: set mddev readonly flag on blkdev BLKROSET ioctl Dan Williams
2009-01-08  7:24 ` [PATCH 2/2] Revert "Restore force switch of md array to readonly at reboot time." Dan Williams
2009-01-18 23:07 ` Neil Brown [this message]
2010-05-11 18:06   ` [RFC PATCH 0/2] a couple of readonly handling fixups Dan Williams
2010-05-11 22:33     ` Neil Brown

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=18803.46655.134295.118861@nbeee.brown \
    --to=neilb@suse.de \
    --cc=dan.j.williams@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).