]> git.baikalelectronics.ru Git - kernel.git/commit
md: set MD_RECOVERY_RECOVER when starting a degraded array.
authorNeilBrown <neilb@suse.com>
Fri, 17 Jul 2015 01:57:30 +0000 (11:57 +1000)
committerNeilBrown <neilb@suse.com>
Mon, 31 Aug 2015 17:37:03 +0000 (19:37 +0200)
commit28a08d01a85ee333b1bf6c5b987461c810c5e454
tree54c19c92e26fe9d7f4d4b51c998a7ad89b3c76ad
parent35ae5a0215025b61cde01729c958404b806f897f
md: set MD_RECOVERY_RECOVER when starting a degraded array.

This ensures that 'sync_action' will show 'recover' immediately the
array is started.  If there is no spare the status will change to
'idle' once that is detected.

Clear MD_RECOVERY_RECOVER for a read-only array to ensure this change
happens.

This allows scripts which monitor status not to get confused -
particularly my test scripts.

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