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>
Tue, 20 May 2025 03:34:26 +0000 (05:34 +0200)
commit84eedced1c5b84fe4f9740e4594b2dc99b569388
tree3a0717850f56d433ff005f8b430ce7e6e9176899
parent772042dd38eeb9caaed1476a873cd8359e893775
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