dm raid: fix missing reconfig_mutex unlock in raid_ctr() error paths
stable inclusion from stable-v5.10.190 commit a43c761a7e1cdc44c34e0d696d525d4ce3d6926b category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I928UI Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a43c761a7e1cdc44c34e0d696d525d4ce3d6926b -------------------------------- [ Upstream commit bae30287 ] In the error paths 'bad_stripe_cache' and 'bad_check_reshape', 'reconfig_mutex' is still held after raid_ctr() returns. Fixes: 9dbd1aa3 ("dm raid: add reshaping support to the target") Signed-off-by:Yu Kuai <yukuai3@huawei.com> Signed-off-by:
Mike Snitzer <snitzer@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment