From: Fei Yu <[email protected]>

On 11/17/26 10:39, Tvrtko Ursulin wrote:
> Running the Cyberpunk 2077 benchmark we can observe that waiting on DRM
> sycobjs is relatively hot, but the 96% of the calls are for a single

Nit: "sycobjs" -> "syncobjs".

> Therefore lets add a fast path to bypass the kcalloc/kfree and use a pre-
> allocated stack array for those cases.

These are kvmalloc_objs()/kvzalloc_objs() and kvfree() by now.

The stack entries are always unlinked in cleanup_entries before the
function returns, so their lifetime is the same as the kvfree'd array
before.

Reviewed-by: Fei Yu <[email protected]>

Thanks,
Fei

Reply via email to