]> www.infradead.org Git - users/hch/misc.git/commit
nvmet-fcloop: remove nport from list on last user
authorDaniel Wagner <wagi@kernel.org>
Wed, 7 May 2025 12:22:58 +0000 (14:22 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 12 May 2025 14:02:22 +0000 (16:02 +0200)
commit6f893c183f01e755b0cd476ca787924f5964a8cf
tree4627b8d5a1242b04be02a9b1b5bbe38b01aca5da
parent7bd2e462c4282519a73a0970482b62d66f9d4523
nvmet-fcloop: remove nport from list on last user

The nport object has an association with the rport and lport object,
that means we can only remove an nport object from the global nport_list
after the last user of an rport or lport is gone.

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