]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: relinquish volume with mutex held
authorJingbo Xu <jefflexu@linux.alibaba.com>
Thu, 9 Feb 2023 06:39:12 +0000 (14:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:46 +0000 (09:32 +0100)
commitd54b58c9a42591189075d77b58013e5d7f14191b
treeb5c97a5042476b8b019232f026108426329c9c4d
parentf8d549981e971b89a3ed780151eecd4c3df5818d
erofs: relinquish volume with mutex held

[ Upstream commit 46a68a4a2e23c293bf08ceaebdedd502dc39b841 ]

Relinquish fscache volume with mutex held.  Otherwise if a new domain is
registered when the old domain with the same name gets removed from the
list but not relinquished yet, fscache may complain the collision.

Fixes: 35a423bf6047 ("erofs: introduce fscache-based domain")
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Jia Zhu <zhujia.zj@bytedance.com>
Link: https://lore.kernel.org/r/20230209063913.46341-4-jefflexu@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/erofs/fscache.c