NeilBrown 4d484a4a7a md: allow upper limit for resync/reshape to be set when array is read-only
Normally we only allow the upper limit for a reshape to be decreased
when the array not performing a sync/recovery/reshape, otherwise there
could be races.  But if an array is part-way through a reshape when it
is assembled the reshape is started immediately leaving no window
to set an upper bound.

If the array is started read-only, the reshape will be suspended until
the array becomes writable, so that provides a window during which it
is perfectly safe to reduce the upper limit of a reshape.

So: allow the upper limit (sync_max) to be reduced even if the reshape
thread is running, as long as the array is still read-only.

Signed-off-by: NeilBrown <neilb@suse.de>
2009-08-13 10:41:50 +10:00
..
2006-01-01 22:21:50 +01:00
2009-06-22 10:12:14 +01:00
2009-06-22 10:12:26 +01:00
2009-06-22 10:12:36 +01:00
2009-04-09 00:27:17 +01:00
2009-06-22 10:12:25 +01:00
2009-06-22 10:12:29 +01:00
2007-10-20 02:01:26 +01:00
2009-06-22 10:12:35 +01:00
2009-06-22 10:12:35 +01:00
2009-08-10 12:50:52 +10:00
2009-03-31 14:57:37 +11:00
2005-04-16 15:20:36 -07:00