nvmet-fc: take ref count on tgtport before delete assoc
authorDaniel Wagner <dwagner@suse.de>
Wed, 31 Jan 2024 08:51:11 +0000 (09:51 +0100)
committerKeith Busch <kbusch@kernel.org>
Thu, 1 Feb 2024 15:44:52 +0000 (07:44 -0800)
commitfe506a74589326183297d5abdda02d0c76ae5a8b
tree7e0d526369b1fb47cc0c7bdd944cfbd88149273d
parent710c69dbaccdac312e32931abcb8499c1525d397
nvmet-fc: take ref count on tgtport before delete assoc

We have to ensure that the tgtport is not going away
before be have remove all the associations.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/fc.c