Commit 8614b6e7 authored by Mike Snitzer's avatar Mike Snitzer Committed by zhaoxiaoqiang11
Browse files

dm cache: Fix ABBA deadlock between shrink_slab and dm_cache_metadata_abort

stable inclusion
from stable-v5.10.163
commit b45e77b79215405bd039a690f5b06cc03e8ed27d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7PJ9N

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b45e77b79215405bd039a690f5b06cc03e8ed27d



----------------------------------------------------

commit 352b837a upstream.

Same ABBA deadlock pattern fixed in commit 4b60f452ec51 ("dm thin: Fix
ABBA deadlock between shrink_slab and dm_pool_abort_metadata") to
DM-cache's metadata.

Reported-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Cc: stable@vger.kernel.org
Fixes: 028ae9f7 ("dm cache: add fail io mode and needs_check flag")
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent d46f384c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment