]> www.infradead.org Git - users/hch/misc.git/commit
nvmet-fcloop: drop response if targetport is gone
authorDaniel Wagner <wagi@kernel.org>
Wed, 7 May 2025 12:23:07 +0000 (14:23 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 12 May 2025 14:04:59 +0000 (16:04 +0200)
commit8245423d6770d0dbbc5eed7336a0eaeed0a8bd5b
treeececef5eb38da8928e43b566dc6c7b6c6f0b3ffe
parent6dbe553285c3b55cf4110b5188e8efa11852b2f0
nvmet-fcloop: drop response if targetport is gone

When the target port is gone, the lsrsp pointer is invalid. Thus don't
call the done function anymore instead just drop the response.

This happens when the target sends a disconnect association. After this
the target starts tearing down all resources and doesn't expect any
response.

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