]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cachefiles: cancel all requests for the object that is being dropped
authorBaokun Li <libaokun1@huawei.com>
Fri, 28 Jun 2024 06:29:27 +0000 (14:29 +0800)
committerChristian Brauner <brauner@kernel.org>
Wed, 3 Jul 2024 08:36:15 +0000 (10:36 +0200)
commit751f524635a4f076117d714705eeddadaf6748ee
tree99dea70ece9877b3cc25009a818daf2a563c1ef4
parentb2415d1f4566b6939acacc69637eaa57815829c1
cachefiles: cancel all requests for the object that is being dropped

Because after an object is dropped, requests for that object are useless,
cancel them to avoid causing other problems.

This prepares for the later addition of cancel_work_sync(). After the
reopen requests is generated, cancel it to avoid cancel_work_sync()
blocking by waiting for daemon to complete the reopen requests.

Signed-off-by: Baokun Li <libaokun1@huawei.com>
Link: https://lore.kernel.org/r/20240628062930.2467993-7-libaokun@huaweicloud.com
Acked-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Jia Zhu <zhujia.zj@bytedance.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/cachefiles/ondemand.c