]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvmet-fcloop: call done callback even when remote port is gone
authorDaniel Wagner <wagi@kernel.org>
Tue, 2 Sep 2025 10:22:02 +0000 (12:22 +0200)
committerKeith Busch <kbusch@kernel.org>
Mon, 15 Sep 2025 15:52:57 +0000 (08:52 -0700)
commit10c165af35d225eb033f4edc7fcc699a8d2d533d
tree18ad02264865e76f5fae535931a181c93ff458f1
parentf2537be4f8421f6495edfa0bc284d722f253841d
nvmet-fcloop: call done callback even when remote port is gone

When the target port is gone, it's not possible to access any of the
request resources. The function should just silently drop the response.
The comment is misleading in this regard.

Though it's still necessary to call the driver via the ->done callback
so the driver is able to release all resources.

Reported-by: Yi Zhang <yi.zhang@redhat.com>
Closes: https://lore.kernel.org/all/CAHj4cs-OBA0WMt5f7R0dz+rR4HcEz19YLhnyGsj-MRV3jWDsPg@mail.gmail.com/
Fixes: 84eedced1c5b ("nvmet-fcloop: drop response if targetport is gone")
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/fcloop.c