]> git.baikalelectronics.ru Git - kernel.git/commit
raid5: guarantee enough stripes to avoid reshape hang
authorShaohua Li <shli@fb.com>
Tue, 30 Aug 2016 17:29:33 +0000 (10:29 -0700)
committerShaohua Li <shli@fb.com>
Wed, 31 Aug 2016 16:05:23 +0000 (09:05 -0700)
commiteebc3cc328a768af8e05aa8293d0f8e32015c281
tree84a2c04da9521953b1883b04bc9b54a51d600a4c
parentf9c85f03fa7b6c10edbe3bfde26f6ce45ab73cd4
raid5: guarantee enough stripes to avoid reshape hang

If there aren't enough stripes, reshape will hang. We have a check for
this in new reshape, but miss it for reshape resume, hence we could see
hang in reshape resume. This patch forces enough stripes existed if
reshape resumes.

Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5.c