diff options
| author | Shao Mingyin <shao.mingyin@zte.com.cn> | 2026-11-14 02:02:58 +0800 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-11-16 07:42:48 -0800 |
| commit | 3f82752e089283eb8204b9d2ebd8246077031173 (patch) | |
| tree | 8c3e2b4ece56d68ad96fdea4af5acd635c8a3e92 /tools/perf/scripts/python | |
| parent | 153eac284ebf68be74993643e9b2fe2f9b2b1d88 (diff) | |
nvmet: roll back queue bindings on connection failure
nvmet_install_queue() publishes the SQ controller pointer before
claiming the CQ. If the CQ is already connected, it leaves the SQ
pointer and the controller reference taken for it behind on failure.
An install_queue() callback failure also leaves the CQ bound after
clearing the SQ pointer. The reference taken in nvmet_install_queue()
is in addition to the one the caller already holds: the caller's put
releases the reference acquired before the call, while this one belongs
to the CQ binding. It is not released on this path, so the controller
stays alive and a Connect retry on the same queue keeps finding the
stale binding.
Clear the tentative SQ binding and release the extra reference on a CQ
conflict. On a transport installation failure, destroy the CQ binding
as well, so its controller table entry and reference are released.
Link: https://lore.kernel.org/all/20261106015842.3534898-6-kanie@linux.alibaba.com/
Fixes: bb78836b3a7c ("nvmet: fabrics: add CQ init and destroy")
Cc: stable@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
