nvme-multipath: pass NS head to nvme_mpath_revalidate_paths()
authorJohn Garry <john.g.garry@oracle.com>
Fri, 29 May 2026 09:52:01 +0000 (09:52 +0000)
committerKeith Busch <kbusch@kernel.org>
Tue, 2 Jun 2026 10:15:08 +0000 (03:15 -0700)
commitf078d1aa52a4481cbf4d12c1543639d65a020d3b
treea2df097c144700c5f4d4c78af8ebd3f51679691f
parenta192b8cfa447e1b3701a13434a31c392b2e7ed29
nvme-multipath: pass NS head to nvme_mpath_revalidate_paths()

In nvme_mpath_revalidate_paths(), we are passed a NS pointer and use that
to lookup the NS head and then use that same NS pointer as an iter variable.

It makes more sense pass the NS head and use a local variable for the NS
iter.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h