diff options
author | Sagi Grimberg <[email protected]> | 2021-10-24 10:43:31 +0300 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2021-10-26 10:41:29 +0200 |
commit | 25e1f67eda4a19c91dc05c84d6d413c53efb447b (patch) | |
tree | e9915a50d150e48c048315abbbd1530297856243 /scripts/gcc-plugins/sancov_plugin.c | |
parent | 926245c7d22271307606c88b1fbb2539a8550e94 (diff) |
nvme-tcp: fix H2CData PDU send accounting (again)
We should not access request members after the last send, even to
determine if indeed it was the last data payload send. The reason is
that a completion could have arrived and trigger a new execution of the
request which overridden these members. This was fixed by commit
825619b09ad3 ("nvme-tcp: fix possible use-after-completion").
Commit e371af033c56 broke that assumption again to address cases where
multiple r2t pdus are sent per request. To fix it, we need to record the
request data_sent and data_len and after the payload network send we
reference these counters to determine weather we should advance the
request iterator.
Fixes: e371af033c56 ("nvme-tcp: fix incorrect h2cdata pdu offset accounting")
Reported-by: Keith Busch <[email protected]>
Cc: [email protected] # 5.10+
Signed-off-by: Sagi Grimberg <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions