md: raid5: check stripe cache is large enough in start_reshape
authorNeilBrown <neilb@suse.de>
Wed, 17 Jun 2009 22:47:20 +0000 (08:47 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 17 Jun 2009 22:47:20 +0000 (08:47 +1000)
commit01ee22b496c41384eaa6dcae983c86d8bc32fbb8
treeaeb031b03e2a8b784fcf71ed462c0aa37b7006ef
parentd6e412eaa52db82010f12ea7d2c9b9468e933c44
md: raid5: check stripe cache is large enough in start_reshape

In reshape cases that do not change the number of devices,
start_reshape is called without first calling check_reshape.

Currently, the check that the stripe_cache is large enough is
only done in check_reshape.  It should be in start_reshape too.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c