diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2019-03-13 18:55:10 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-03-13 19:57:34 +0100 |
commit | 602d674ce90f64ac135452fb9b2b058acb53b226 (patch) | |
tree | 03f0a830518c6a07826be1dd71ed569aa800dc8b /kernel/trace/blktrace.c | |
parent | nvmet: ignore EOPNOTSUPP for discard (diff) | |
download | linux-602d674ce90f64ac135452fb9b2b058acb53b226.tar.xz linux-602d674ce90f64ac135452fb9b2b058acb53b226.zip |
nvme-tcp: support C2HData with SUCCESS flag
A C2HData PDU with the SUCCESS flag set indicates that the I/O was
completed by the controller successfully and means that a subsequent
completion response capsule PDU will be ommitted.
If we see this flag, fisrt we check that LAST_PDU flag is set as well,
and then we complete the request when the data transfer (and data digest
verification if its on) is done.
While we're at it, reuse a bit of code with nvme_fail_request.
Reported-by: Steve Blightman <steve.blightman@oracle.com>
Suggested-by: Oliver Smith-Denny <osmithde@cisco.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Oliver Smith-Denny <osmithde@cisco.com>
Tested-by: Oliver Smith-Denny <osmithde@cisco.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/trace/blktrace.c')
0 files changed, 0 insertions, 0 deletions