[PATCH v1 19/23] cachefiles: implement .demand_read() for demand read
JeffleXu
jefflexu at linux.alibaba.com
Tue Dec 28 23:33:23 AEDT 2021
On 12/27/21 11:36 PM, Matthew Wilcox wrote:
> On Mon, Dec 27, 2021 at 08:54:40PM +0800, Jeffle Xu wrote:
>> + spin_lock(&cache->reqs_lock);
>> + ret = idr_alloc(&cache->reqs, req, 0, 0, GFP_KERNEL);
>
> GFP_KERNEL while holding a spinlock?
Right. Thanks for pointing it out.
>
> You should be using an XArray instead of an IDR in new code anyway.
>
Regards.
--
Thanks,
Jeffle
More information about the Linux-erofs
mailing list