[PATCH V3 6/8] nvme-core: align fabrics_q teardown with admin_q in nvme_free_ctrl

Daniel Wagner dwagner at suse.de
Mon Apr 27 02:35:10 PDT 2026


On Fri, Apr 10, 2026 at 09:39:22AM +0200, Maurizio Lombardi wrote:
> Currently, the final reference for the fabrics admin queue (fabrics_q)
> is dropped inside nvme_remove_admin_tag_set(). However, the primary
> admin queue (admin_q) defers dropping its final reference until
> nvme_free_ctrl().
> 
> Move the blk_put_queue() call for fabrics_q from nvme_remove_admin_tag_set()
> to nvme_free_ctrl(). This aligns the lifecycle management of both admin
> queues, ensuring they are freed symmetrically when the controller is finally
> torn down.

Looks good to me.

Reviewed-by: Daniel Wagner <dwagner at suse.de>



More information about the Linux-nvme mailing list