]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme-multipath: drop head pointer check in nvme_mpath_clear_current_path()
authorJohn Garry <john.g.garry@oracle.com>
Wed, 8 Apr 2026 08:03:57 +0000 (08:03 +0000)
committerKeith Busch <kbusch@kernel.org>
Thu, 9 Apr 2026 14:20:39 +0000 (07:20 -0700)
commit7d435caacd91d23ebba281c4aac859196e1e2938
tree2c2039c832ef4ba6ee75f2497d0b1d0252fd343a
parent7f991e3f9b8f044640bcb5fa8570350a68932843
nvme-multipath: drop head pointer check in nvme_mpath_clear_current_path()

A NS will always have a head pointer, so drop the check. As proof in
practice, all the nvme_mpath_clear_current_path() callers also
dereference ns->head.

This check has endured since the original changes to support multipath.

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/multipath.c