[PATCH] nvme-multipath: drop head pointer check in nvme_mpath_clear_current_path()

Christoph Hellwig hch at lst.de
Wed Apr 8 23:11:46 PDT 2026


On Wed, Apr 08, 2026 at 08:03:57AM +0000, John Garry wrote:
> 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.

Looks good:

Reviewed-by: Christoph Hellwig <hch at lst.de>




More information about the Linux-nvme mailing list