Re: [PATCH 08/12] cachefiles: never get a new anon fd if ondemand_id is valid

2024-05-07 Thread Baokun Li
Hi Jingbo, On 2024/5/6 11:09, Jingbo Xu wrote: On 4/24/24 11:39 AM, libao...@huaweicloud.com wrote: From: Baokun Li Now every time the daemon reads an open request, it requests a new anon fd and ondemand_id. With the introduction of "restore", it is possible to read the same open request mor

Re: [PATCH 08/12] cachefiles: never get a new anon fd if ondemand_id is valid

2024-05-05 Thread Jingbo Xu
On 4/24/24 11:39 AM, libao...@huaweicloud.com wrote: > From: Baokun Li > > Now every time the daemon reads an open request, it requests a new anon fd > and ondemand_id. With the introduction of "restore", it is possible to read > the same open request more than once, and therefore have multipl

[PATCH 08/12] cachefiles: never get a new anon fd if ondemand_id is valid

2024-04-23 Thread libaokun
From: Baokun Li Now every time the daemon reads an open request, it requests a new anon fd and ondemand_id. With the introduction of "restore", it is possible to read the same open request more than once, and therefore have multiple anon fd's for the same object. To avoid this, allocate a new an