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>
Tue, 20 May 2025 03:34:26 +0000 (05:34 +0200)
commitb999efc8cf41420f9d9f8b08c111ad80e49b274e
treedaa380a83a409033aadf07aca2c95624a9e57f13
parentd6c40d87e7fed4b10f2fe93c90487145e2622ebf
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