All of lore.kernel.org
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Nix <nix@esperi.org.uk>
Cc: earny@net4u.de, Mike <mikee@mikee.ath.cx>, linux-raid@vger.kernel.org
Subject: Re: FailSpare event?
Date: Mon, 15 Jan 2007 08:20:10 +1100	[thread overview]
Message-ID: <17834.40586.985089.343283@notabene.brown> (raw)
In-Reply-To: message from Nix on Sunday January 14

On Sunday January 14, nix@esperi.org.uk wrote:
> On 13 Jan 2007, nix@esperi.org.uk uttered the following:
> > mdadm-2.6 bug, I fear. I haven't tracked it down yet but will look
> > shortly: I can't afford to not run mdadm --monitor... odd, that
> > code hasn't changed during 2.6 development.
> 
> Whoo! Compile Monitor.c without optimization and the problem goes away.
> 
> Hunting: maybe it's a compiler bug (anyone not using GCC 4.1.1 seeing
> this?), maybe mdadm is tripping undefined behaviour somewhere...

Probably....

A quick look suggests that the following patch might make a
difference, but there is more to it than that.  I think there are
subtle differences due to the use of version-1 superblocks.  That
might be just another one-line change, but I want to make sure first.

Thanks,
NeilBrown



### Diffstat output
 ./Monitor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff .prev/Monitor.c ./Monitor.c
--- .prev/Monitor.c	2006-12-21 17:15:55.000000000 +1100
+++ ./Monitor.c	2007-01-15 08:17:30.000000000 +1100
@@ -383,7 +383,7 @@ int Monitor(mddev_dev_t devlist,
 						)
 						alert("SpareActive", dev, dv, mailaddr, mailfrom, alert_cmd, dosyslog);
 				}
-				st->devstate[i] = disc.state;
+				st->devstate[i] = newstate;
 				st->devid[i] = makedev(disc.major, disc.minor);
 			}
 			st->active = array.active_disks;

  reply	other threads:[~2007-01-14 21:20 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-11 22:11 FailSpare event? Mike
2007-01-11 22:23 ` Neil Brown
2007-01-11 22:36   ` Mike
2007-01-11 22:59     ` Neil Brown
2007-01-11 23:06       ` Mike
2007-01-12  0:05         ` Mike Hardy
2007-01-12  0:40         ` Corey Hickey
2007-01-12  0:48         ` Martin Schröder
2007-01-12 14:34   ` Ernst Herzberg
2007-01-13 18:10     ` Nix
2007-01-13 23:34       ` Nix
2007-01-13 23:38       ` Nix
     [not found]         ` <45ABA3E4.3050800@tmr.com>
2007-01-15 19:59           ` Nix
2007-01-14 15:01       ` Nix
2007-01-14 21:20         ` Neil Brown [this message]
2007-01-15 20:08           ` Nix
2007-01-13 22:29   ` Mike

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=17834.40586.985089.343283@notabene.brown \
    --to=neilb@suse.de \
    --cc=earny@net4u.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=mikee@mikee.ath.cx \
    --cc=nix@esperi.org.uk \
    /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.