[PATCH v3 03/21] nvmet: Implement CCR nvme command

Mohamed Khalfella mkhalfella at purestorage.com
Wed Mar 25 11:52:10 PDT 2026


On Fri 2026-02-27 17:30:29 +0100, Maurizio Lombardi wrote:
> On Sat Feb 14, 2026 at 5:25 AM CET, Mohamed Khalfella wrote:
> > Defined by TP8028 Rapid Path Failure Recovery, CCR (Cross-Controller
> > Reset) command is an nvme command issued to source controller by
> > initiator to reset impacted controller. Implement CCR command for linux
> > nvme target.
> >
> > +
> > +	new_ccr = kmalloc(sizeof(*new_ccr), GFP_KERNEL);
> > +	if (!new_ccr) {
> > +		status = NVME_SC_INTERNAL;
> > +		goto out_unlock;
> > +	}
> 
> Nit: kmalloc_obj is now the preferred function for this kind of memory
> allocations, see commit 69050f8d6d075dc01a and 189f164e573e18d
> 
> scripts/checkpatch.pl is supposed to print a warning
> but there must be a problem with the regex and doesn't catch it
> 

Got it. Switched the allocation to use kmalloc_obj().



More information about the Linux-nvme mailing list