]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Monitor: don't set arrays dirty after transition to read-only
authormwilck@arcor.de <mwilck@arcor.de>
Sat, 14 Sep 2013 21:24:07 +0000 (23:24 +0200)
committerNeilBrown <neilb@suse.de>
Wed, 16 Oct 2013 04:29:43 +0000 (15:29 +1100)
commit7bb1d61354e4f8932f0a6eb926d5855b05c8c7b8
treeb308f63d9e76cf7cd9b03c00cf2f6a93e1ed8c82
parent7039479987745f19b166b1c28d45dfc41420e6d9
Monitor: don't set arrays dirty after transition to read-only

This patch reverts commit 4867e068. Setting arrays dirty after
transition from inactive to anything else causes unnecessary
meta data writes and may wreak trouble unnecessarily when
a disk was missing during assembly but the array was never
written to.

The reason for 4867e068 was a special situation during reshape
from RAID0 to RAID4. I ran all IMSM test cases with it reverted
and found no regressions, so I believe the reshape logic for
IMSM works fine in mdadm 3.3 also without this.

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
monitor.c