]> www.infradead.org Git - nvme.git/commit
nvmet-fcloop: add ref counting to lport
authorDaniel Wagner <wagi@kernel.org>
Tue, 8 Apr 2025 15:29:05 +0000 (17:29 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Apr 2025 11:03:55 +0000 (13:03 +0200)
commit72511b1dc4147dc4af74ddb98c22366124b26d4e
tree6e2582e9d9a248228dbd3f0830b3979665258957
parentf22c458f9495f9164358961dd73b2f62356c9750
nvmet-fcloop: add ref counting to lport

The fcloop_lport objects live time is controlled by the user interface
add_local_port and del_local_port. nport, rport and tport objects are
pointing to the lport objects but here is no clear tracking. Let's
introduce an explicit ref counter for the lport objects and prepare the
stage for restructuring how lports are used.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/fcloop.c