]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
md: Fix regression with raid1 arrays without persistent metadata.
authorNeilBrown <neilb@suse.de>
Thu, 28 Oct 2010 06:30:20 +0000 (17:30 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:32:39 +0000 (13:32 -0800)
commit3743e8ce777f4f1cfa1797dc1d96a4e94b361a11
tree569502b1d23d85f54ad75a892bb04c36b3ee2ee2
parent9e49bc372442f94445e094868071936950fde523
md: Fix regression with raid1 arrays without persistent metadata.

commit d97a41dc9c44f5829b7af7aa69fda10fd82b6b4e upstream.

A RAID1 which has no persistent metadata, whether internal or
external, will hang on the first write.
This is caused by commit  070dc6dd7103b6b3f7e4d46e754354a5c15f366e
In that case, MD_CHANGE_PENDING never gets cleared.

So during md_update_sb, is neither persistent or external,
clear MD_CHANGE_PENDING.

This is suitable for 2.6.36-stable.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/md.c