md/raid5-cache: disable reshape completely
authorShaohua Li <shli@fb.com>
Wed, 29 Aug 2018 18:05:42 +0000 (11:05 -0700)
committerShaohua Li <shli@fb.com>
Sat, 1 Sep 2018 00:38:09 +0000 (17:38 -0700)
commite254de6bcf3f5b6e78a92ac95fb91acef8adfe1a
tree28d3936768e8425494ea69815bc62e6fa4608e1a
parent420f51f4ab6bce6e580390729fadb89c31123636
md/raid5-cache: disable reshape completely

We don't support reshape yet if an array supports log device. Previously we
determine the fact by checking ->log. However, ->log could be NULL after a log
device is removed, but the array is still marked to support log device. Don't
allow reshape in this case too. User can disable log device support by setting
'consistency_policy' to 'resync' then do reshape.

Reported-by: Xiao Ni <xni@redhat.com>
Tested-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-log.h
drivers/md/raid5.c