NeilBrown 2b12ab6d33 md: 'sync_action' in sysfs returns wrong value for readonly arrays
When an array is started read-only, MD_RECOVERY_NEEDED can be set but no
recovery will be running.  This causes 'sync_action' to report the wrong
value.

We could remove the test for MD_RECOVERY_NEEDED, but doing so would leave a
small gap after requesting a sync action, where 'sync_action' would still
report the old value.

So make sure that for a read-only array, 'sync_action' always returns 'idle'.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-17 08:43:03 -07:00
..
2007-10-17 08:42:52 -07:00
2007-10-16 09:43:09 -07:00
2007-10-17 08:42:49 -07:00
2007-10-16 22:29:58 +02:00
2007-10-16 19:04:49 -07:00
2007-10-16 19:05:30 -07:00
2007-10-17 08:42:52 -07:00
2007-10-17 08:42:52 -07:00
2007-10-16 09:43:10 -07:00
2007-10-14 08:53:33 -07:00
2007-10-17 08:42:57 -07:00
2007-10-17 08:42:47 -07:00
2007-10-16 09:43:09 -07:00
2007-10-16 09:43:09 -07:00