aboutsummaryrefslogtreecommitdiff
path: root/scripts/checkversion.pl
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-06-16 16:45:16 +1000
committerNeilBrown <neilb@suse.de>2010-06-24 13:35:02 +1000
commite4e11e385d1e5516ac76c956d6c25e6c2fa1b8d0 (patch)
tree978807084ae3136b20a12efab3720ecec861d0ff /scripts/checkversion.pl
parent049d6c1ef983c9ac43aa423dfd752071a5b0002d (diff)
md/raid5: avoid oops when number of devices is reduced then increased.
The entries in the stripe_cache maintained by raid5 are enlarged when we increased the number of devices in the array, but not shrunk when we reduce the number of devices. So if entries are added after reducing the number of devices, we much ensure to initialise the whole entry, not just the part that is currently relevant. Otherwise if we enlarge the array again, we will reference uninitialised values. As grow_buffers/shrink_buffer now want to use a count that is stored explicity in the raid_conf, they should get it from there rather than being passed it as a parameter. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'scripts/checkversion.pl')
0 files changed, 0 insertions, 0 deletions