[PATCH] nvme-fc: set numa_node after nvme_init_ctrl

Keith Busch kbusch at kernel.org
Thu Dec 21 09:21:58 PST 2023


On Wed, Dec 20, 2023 at 03:43:03PM +0200, Max Gurtovoy wrote:
> On 19/12/2023 19:49, Keith Busch wrote:
> > +	if (lport->dev)
> > +		ctrl->ctrl.numa_node = dev_to_node(lport->dev);
> > +	else
> > +		ctrl->ctrl.numa_node = NUMA_NO_NODE;
> 
> We don't need the "else" clause, it is initialized to NUMA_NO_NODE.

This was just moving the existing hunk, but your suggestion is a nice
bonus cleanup. I've folded it in and applied for nvme-6.8. Thanks!



More information about the Linux-nvme mailing list