linux-stable/drivers/nvme/target
Sagi Grimberg 30e32f300b nvmet-tcp: fix possible list corruption for unexpected command failure
nvmet_tcp_handle_req_failure needs to understand weather to prepare
for incoming data or the next pdu. However if we misidentify this, we
will wait for 0-length data, and queue the response although nvmet_req_init
already did that.

The particular command was namespace management command with no data,
which was incorrectly categorized as a command with incapsule data.

Also, add a code comment of what we are trying to do here.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2021-12-08 16:36:58 +01:00
..
admin-cmd.c nvmet: use flex_array_size and struct_size 2021-10-27 08:06:41 +02:00
configfs.c nvmet: make discovery NQN configurable 2021-10-20 19:16:01 +02:00
core.c nvmet: register discovery subsystem as 'current' 2021-10-27 08:06:04 +02:00
discovery.c nvmet: register discovery subsystem as 'current' 2021-10-27 08:06:04 +02:00
fabrics-cmd.c nvmet: set 'CNTRLTYPE' in the identify controller data 2021-10-20 19:16:02 +02:00
fc.c nvmet-fc: do not check for invalid target port in nvmet_fc_handle_fcp_rqst() 2021-06-17 15:51:19 +02:00
fcloop.c nvme: constify static attribute_group structs 2021-02-02 10:26:10 +01:00
io-cmd-bdev.c nvmet: use bdev_nr_bytes instead of open coding it 2021-10-18 14:43:22 -06:00
io-cmd-file.c nvmet: use IOCB_NOWAIT only if the filesystem supports it 2021-11-25 15:02:40 +01:00
Kconfig nvme: Have NVME_FABRICS select NVME_CORE instead of transport drivers 2021-08-16 21:03:18 +02:00
loop.c nvme: loop: clear NVME_CTRL_ADMIN_Q_STOPPED after admin queue is reallocated 2021-10-19 18:27:58 -06:00
Makefile nvmet: add ZBD over ZNS backend support 2021-06-17 15:51:21 +02:00
nvmet.h nvmet: switch check for subsystem type 2021-10-27 08:03:30 +02:00
passthru.c nvmet: return bool from nvmet_passthru_ctrl and nvmet_is_passthru_req 2021-09-06 09:59:03 +02:00
rdma.c nvmet-rdma: implement get_max_queue_size controller op 2021-10-20 19:16:01 +02:00
tcp.c nvmet-tcp: fix possible list corruption for unexpected command failure 2021-12-08 16:36:58 +01:00
trace.c nvmet: add set feature tracing support 2021-08-16 14:42:23 +02:00
trace.h nvmet: use min of device_path and disk len 2021-02-10 16:38:05 +01:00
zns.c nvmet: remove redundant assignments of variable status 2021-08-16 14:42:23 +02:00