aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnkit Kumar <ankit.kumar@samsung.com>2023-12-12 20:17:18 +0530
committerVincent Fu <vincent.fu@samsung.com>2023-12-12 09:39:06 -0500
commitf53eaac02ec46bdf7f87058f30667be80975caf6 (patch)
tree1dbf25a08d44fdc3c352ae6e06df34e9fa7f55ed
parent63e6f55a9147cf9f76376c2e7e38a623c8832f23 (diff)
downloadfio-f53eaac02ec46bdf7f87058f30667be80975caf6.tar.gz
engines/io_uring_cmd: skip pi verify checks for error cases
If any error is observed for read requests, skip all end to end data protection checks. Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com> Link: https://lore.kernel.org/r/20231212144718.568406-1-ankit.kumar@samsung.com Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
-rw-r--r--engines/io_uring.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/io_uring.c b/engines/io_uring.c
index 5ae3135bc..c0cb5a78f 100644
--- a/engines/io_uring.c
+++ b/engines/io_uring.c
@@ -468,10 +468,12 @@ static struct io_u *fio_ioring_cmd_event(struct thread_data *td, int event)
cqe = &ld->cq_ring.cqes[index];
io_u = (struct io_u *) (uintptr_t) cqe->user_data;
- if (cqe->res != 0)
+ if (cqe->res != 0) {
io_u->error = -cqe->res;
- else
+ return io_u;
+ } else {
io_u->error = 0;
+ }
if (o->cmd_type == FIO_URING_CMD_NVME) {
data = FILE_ENG_DATA(io_u->file);