Re: [PATCH v5 7/7] udmabuf: reuse folio array when pin folios

2024-09-06 Thread Huan Yang
在 2024/9/6 16:23, Kasireddy, Vivek 写道: Hi Huan, Subject: [PATCH v5 7/7] udmabuf: reuse folio array when pin folios When invoke memfd_pin_folios, we need offer an array to save each folio which we pinned. The currently way is dynamic alloc an array, get folios, save into udmabuf and then

RE: [PATCH v5 7/7] udmabuf: reuse folio array when pin folios

2024-09-06 Thread Kasireddy, Vivek
Hi Huan, > Subject: [PATCH v5 7/7] udmabuf: reuse folio array when pin folios > > When invoke memfd_pin_folios, we need offer an array to save each folio > which we pinned. > > The currently way is dynamic alloc an array, get folios, save into > udmabuf and then free. >

[PATCH v5 7/7] udmabuf: reuse folio array when pin folios

2024-09-03 Thread Huan Yang
When invoke memfd_pin_folios, we need offer an array to save each folio which we pinned. The currently way is dynamic alloc an array, get folios, save into udmabuf and then free. If the size is tiny, alloc from slab, is ok due to slab can cache it. Or, just PCP order can cover, also ok. But if s