Commit cb737f8a authored by Yu Kuai's avatar Yu Kuai Committed by sanglipeng
Browse files

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: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent cd7806a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment