summaryrefslogtreecommitdiffstats
path: root/fs/partitions
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-02-16 13:58:38 +1100
committerNeilBrown <neilb@suse.de>2011-02-16 13:58:38 +1100
commitcbe6ef1d2622e08e272600b3cb6040bed60f0450 (patch)
tree03d1ae0fe73404a3bd7850d89c415f3412977693 /fs/partitions
parentf7bee80945155ad0326916486dabc38428c6cdef (diff)
downloadtalos-op-linux-cbe6ef1d2622e08e272600b3cb6040bed60f0450.tar.gz
talos-op-linux-cbe6ef1d2622e08e272600b3cb6040bed60f0450.zip
md: don't set_capacity before array is active.
If the desired size of an array is set (via sysfs) before the array is active (which is the normal sequence), we currrently call set_capacity immediately. This means that a subsequent 'open' (as can be caused by some udev-triggers program) will notice the new size and try to probe for partitions. However as the array isn't quite ready yet the read will fail. Then when the array is read, as the size doesn't change again we don't try to re-probe. So when setting array size via sysfs, only call set_capacity if the array is already active. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'fs/partitions')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud