[PATCH] nvmet-fc: skip hostport handling when the LLDD provides no hosthandle

Keith Busch kbusch at kernel.org
Fri Nov 20 11:54:24 PST 2026


On Fri, 20 Nov 2026 16:05:40 +0800, Guixin Liu wrote:
> nvmet_fc_alloc_hostport() returns NULL when the LLDD does not implement
> the hosthandle abstraction, but the association lifetime code assumes
> an association always has a hostport:
> 
>   - nvmet_fc_xmt_disconnect_assoc() reads assoc->hostport->invalid
>   - nvmet_fc_target_assoc_free() drops the hostport reference
>     unconditionally
>   - nvmet_fc_invalidate_host() compares assoc->hostport->hosthandle
>     while scanning the association list
> 
> [...]

Thanks, applied to nvme-7.4.

[1/1] nvmet-fc: skip hostport handling when the LLDD provides no hosthandle
      commit: 65f2f49bd912d446f93f840303e90283142ed15b
--
Keith Busch <kbusch at kernel.org>




More information about the Linux-nvme mailing list