Re: [PATCH v3 10/18] nvmet-fcloop: allocate/free fcloop_lsreq directly
From: Daniel Wagner
Date: Tue Mar 18 2025 - 09:59:28 EST
On Tue, Mar 18, 2025 at 12:17:11PM +0100, Hannes Reinecke wrote:
> > + tls_req = kmalloc(sizeof(*tls_req), GFP_KERNEL);
> > + if (!tls_req)
> > + return -ENOMEM;
>
> This cries out for kmem_cache_alloc() ...
Okay, will switch to this API. FWIW, in the same call path there are
more kmallocs.