NeilBrown 48c26ddc9f md: writing to sync_action should clear the read-auto state.
In some cases array are started in 'read-auto' state where in
nothing gets written to any device until the array is written
to.  The purpose of this is to make accidental auto-assembly
of the wrong arrays less of a risk, and to allow arrays to be
started to read suspend-to-disk images without actually changing
anything (as might happen if the array were dirty and a
resync seemed necessary).

Explicitly writing the 'sync_action' for a read-auto array currently
doesn't clear the read-auto state, so the sync action doesn't
happen, which can be confusing.

So allow any successful write to sync_action to clear any read-auto
state.

Reported-by: Alexander Kühn <alexander.kuehn@nagilum.de>
Signed-off-by: NeilBrown <neilb@suse.de>
2012-10-11 14:19:39 +11:00
..
2012-03-28 18:41:29 +01:00
2012-03-28 18:41:29 +01:00
2012-09-09 10:35:38 +02:00
2012-07-30 17:25:16 -07:00
2010-08-12 04:14:12 +01:00
2012-07-27 15:08:16 +01:00
2012-03-19 12:46:39 +11:00
2012-08-02 11:34:40 -07:00
2012-10-11 13:08:44 +11:00
2012-03-28 18:43:38 +01:00
2012-10-11 13:25:44 +11:00
2012-10-11 13:49:05 +11:00