On Tuesday May 6, snitzer@gmail.com wrote:Thanks for persisting. I think I understand what is going on now. How about this patch? It is similar to your, but instead of depending on the odd/even state of the event counter, it directly checks the clean/dirty state of the array. NeilBrown Signed-off-by: Neil Brown <neilb@suse.de> ### Diffstat output ./drivers/md/md.c | 5 +++++ 1 file changed, 5 insertions(+) diff .prev/drivers/md/md.c ./drivers/md/md.c --- .prev/drivers/md/md.c 2008-05-02 14:49:05.000000000 +1000 +++ ./drivers/md/md.c 2008-05-08 16:10:48.000000000 +1000 @@ -843,6 +843,8 @@ static int super_90_validate(mddev_t *md /* if adding to array with a bitmap, then we can accept an * older device ... but not too old. */ + if (sb->state & (1<<MD_SB_CLEAN)) + ev1++; if (ev1 < mddev->bitmap->events_cleared) return 0; } else { @@ -1218,6 +1220,9 @@ static int super_1_validate(mddev_t *mdd /* If adding to array with a bitmap, then we can accept an * older device, but not too old. */ + if (mddev->recovery_cp == MaxSector) + /* array was clean, so can allow 'next' event */ + ev1++; if (ev1 < mddev->bitmap->events_cleared) return 0; } else { --
| Ingo Molnar | Re: [BUG] long freezes on thinkpad t60 |
| Rafael J. Wysocki | Re: [Bug 10030] Suspend doesn't work when SD card is inserted |
| Jamie Lokier | Proposal for "proper" durable fsync() and fdatasync() |
| jimmy bahuleyan | Re: how about mutual compatibility between Linux's GPLv2 and GPLv3? |
git: | |
| Martin Langhoff | Handling large files with GIT |
| Matt Mackall | Re: cleaner/better zlib sources? |
| Wink Saville | git-svn segmetation fault |
| Bill Lear | Meaning of "fatal: protocol error: bad line length character"? |
| Florin Andrei | firewall is very slow, something's wrong |
| Wijnand Wiersma | Almost success: OpenBSD on Xen |
| Marcus Andree | Re: OpenBSD kernel janitors |
| Richard Stallman | Real men don't attack straw men |
| David Miller | Re: tcp bw in 2.6 |
| Rick Jones | Re: 2.6.24 BUG: soft lockup - CPU#X |
| Patrick McHardy | [NET_SCHED 00/04]: External SFQ classifiers/flow classifier |
| Patrick McHardy | Re: [PATCH 2/2] [e1000 VLAN] Disable vlan hw accel when promiscuous mode |
