[PATCH v3 5/9] cachefiles: stop sending new request when dropping object
Gao Xiang
hsiangkao at linux.alibaba.com
Fri Jun 28 16:51:32 AEST 2024
On 2024/6/28 14:29, libaokun at huaweicloud.com wrote:
> From: Baokun Li <libaokun1 at huawei.com>
>
> Added CACHEFILES_ONDEMAND_OBJSTATE_DROPPING indicates that the cachefiles
> object is being dropped, and is set after the close request for the dropped
> object completes, and no new requests are allowed to be sent after this
> state.
>
> This prepares for the later addition of cancel_work_sync(). It prevents
> leftover reopen requests from being sent, to avoid processing unnecessary
> requests and to avoid cancel_work_sync() blocking by waiting for daemon to
> complete the reopen requests.
>
> Signed-off-by: Baokun Li <libaokun1 at huawei.com>
> Acked-by: Jeff Layton <jlayton at kernel.org>
LGTM,
Reviewed-by: Gao Xiang <hsiangkao at linux.alibaba.com>
Thanks,
Gao Xiang
More information about the Linux-erofs
mailing list