md: add a new helper reshape_interrupted()
authorYu Kuai <yukuai3@huawei.com>
Tue, 5 Mar 2024 07:23:01 +0000 (15:23 +0800)
committerSong Liu <song@kernel.org>
Tue, 5 Mar 2024 20:53:32 +0000 (12:53 -0800)
commit503f9d43790fdd0c6e6ae2f4dd3f70b146ac4159
treeeda82a1919b4218def8f042b6b2ec2463ecc503b
parent314e9af065513ff86ec9e32eaa96b9bd275cf51d
md: add a new helper reshape_interrupted()

The helper will be used for dm-raid456 later to detect the case that
reshape can't make progress.

Cc: stable@vger.kernel.org # v6.7+
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Xiao Ni <xni@redhat.com>
Acked-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240305072306.2562024-5-yukuai1@huaweicloud.com
drivers/md/md.h