]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
md/raid5: clear R5_NeedReplace when no longer needed.
authorNeilBrown <neilb@suse.com>
Fri, 17 Jul 2015 03:26:23 +0000 (13:26 +1000)
committerNeilBrown <neilb@suse.com>
Fri, 24 Jul 2015 03:38:04 +0000 (13:38 +1000)
commite6030cb06c40e4ab4e8c712f13f494a09638ed2c
tree8f87729041def172e57f18ff49ba6b8decd65e90
parent90382ed9afeafd42ef193f0eadc6b2a252d6c24d
md/raid5: clear R5_NeedReplace when no longer needed.

This flag is currently never cleared, which can in rare cases
trigger a warn-on if it is still set but the block isn't
InSync.

So clear it when it isn't need, which includes if the replacement
device has failed.

Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/raid5.c