nvme-core: use nvme_ns_head_multipath instead of ns->head->disk
authorIrvin Cote <irvincoteg@gmail.com>
Thu, 18 May 2023 22:10:54 +0000 (19:10 -0300)
committerKeith Busch <kbusch@kernel.org>
Mon, 12 Jun 2023 17:44:57 +0000 (10:44 -0700)
commit35e797b0246b49d116326ff23c2dbfd6507168a5
tree6babebee4a54cedf7c817f10a69d6440c5979332
parentd97b4111b3228122284df0263200f02fd44751fd
nvme-core: use nvme_ns_head_multipath instead of ns->head->disk

Change the way we check for a multipath nshead so as
to consistently use the same check to assert the same condition.

Signed-off-by: Irvin Cote <irvincoteg@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c