dm raid: fix missing reconfig_mutex unlock in raid_ctr() error paths
authorYu Kuai <yukuai3@huawei.com>
Sat, 8 Jul 2023 09:21:51 +0000 (17:21 +0800)
committerMike Snitzer <snitzer@kernel.org>
Tue, 25 Jul 2023 15:55:50 +0000 (11:55 -0400)
commitbae3028799dc4f1109acc4df37c8ff06f2d8f1a0
tree543797509f98d7226638854286332c51d84509ac
parentd4a3806bea61c8ef6e0103d0f39786e00586522e
dm raid: fix missing reconfig_mutex unlock in raid_ctr() error paths

In the error paths 'bad_stripe_cache' and 'bad_check_reshape',
'reconfig_mutex' is still held after raid_ctr() returns.

Fixes: 9dbd1aa3a81c ("dm raid: add reshaping support to the target")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-raid.c