]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: protect s_inodes with s_inode_list_lock for fscache
authorDawei Li <set_pte_at@outlook.com>
Mon, 17 Oct 2022 01:55:53 +0000 (09:55 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 17 Oct 2022 06:57:57 +0000 (14:57 +0800)
commit771ce5e4a7d3bc8afa3221c16230a2a8358cbdae
treedc950fff42e7c07aaebdb9d0975d75cc5755c2cf
parentb5cd19b8376c7a28230143fd89c801c5cc666899
erofs: protect s_inodes with s_inode_list_lock for fscache

s_inodes is superblock-specific resource, which should be
protected by sb's specific lock s_inode_list_lock.

Link: https://lore.kernel.org/r/TYCP286MB23238380DE3B74874E8D78ABCA299@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM
Fixes: bac6cdc114c1 ("erofs: Support sharing cookies in the same domain")
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Reviewed-by: Jia Zhu <zhujia.zj@bytedance.com>
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Dawei Li <set_pte_at@outlook.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/fscache.c