[PATCH v3 10/18] nvmet-fcloop: allocate/free fcloop_lsreq directly

Daniel Wagner dwagner at suse.de
Tue Mar 18 06:58:35 PDT 2025


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.



More information about the Linux-nvme mailing list