linux/drivers/nvme/target
Daniel Wagner 2cf857075b nvmet-fcloop: call done callback even when remote port is gone
[ Upstream commit 10c165af35 ]

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: 84eedced1c ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-15 12:03:33 +02:00
..
admin-cmd.c nvme: spelling fixes 2025-06-04 10:23:28 +02:00
auth.c nvmet-auth: use SHASH_DESC_ON_STACK 2025-05-20 05:34:26 +02:00
configfs.c for-6.14/block-20250118 2025-01-20 19:38:46 -08:00
core.c nvmet: exit debugfs after discovery subsystem exits 2025-08-07 06:27:58 -06:00
debugfs.c These are objtool fixes and updates by Josh Poimboeuf, centered 2025-04-02 10:30:10 -07:00
debugfs.h nvmet: add debugfs support 2024-06-24 12:53:42 -07:00
discovery.c nvmet: replace strncpy with strscpy 2025-05-20 05:34:25 +02:00
fabrics-cmd-auth.c nvmet-tcp: support secure channel concatenation 2025-03-20 16:53:54 -07:00
fabrics-cmd.c nvmet: fabrics: add CQ init and destroy 2025-05-20 05:34:25 +02:00
fc.c nvmet-fc: move lsop put work to nvmet_fc_ls_req_op 2025-10-15 12:03:33 +02:00
fcloop.c nvmet-fcloop: call done callback even when remote port is gone 2025-10-15 12:03:33 +02:00
io-cmd-bdev.c vfs-6.17-rc1.integrity 2025-07-28 15:12:00 -07:00
io-cmd-file.c nvmet: use bvec_set_page to initialize bvecs 2023-02-03 08:20:55 -07:00
Kconfig crash_dump, nvme: select CONFIGFS_FS as built-in 2025-05-27 19:40:33 -07:00
loop.c nvmet: simplify the nvmet_req_init() interface 2025-05-20 05:34:26 +02:00
Makefile nvmet: New NVMe PCI endpoint function target driver 2025-01-10 19:30:49 -08:00
nvmet.h nvmet: fix memory leak of bio integrity 2025-06-30 08:32:16 +02:00
passthru.c nvmet: add support for FDP in fabrics passthru path 2025-07-31 06:35:43 -07:00
pci-epf.c nvmet: pci-epf: Do not complete commands twice if nvmet_req_init() fails 2025-07-17 13:39:57 +02:00
pr.c nvmet-loop: avoid using mutex in IO hotpath 2024-12-27 13:24:00 -08:00
rdma.c nvme: fix various comment typos 2025-07-31 06:35:58 -07:00
tcp.c block-6.16-20250718 2025-07-18 12:16:13 -07:00
trace.c nvmet: add tracing of reservation commands 2024-11-13 08:51:24 -08:00
trace.h nvme: trace: avoid memcpy overflow warning 2024-01-05 13:16:18 -08:00
zns.c nvme: fix multiple spelling and grammar issues in host drivers 2025-07-17 13:38:06 +02:00