From 5557a572f5f447cedb5af2a4fe98c050cbe31d89 Mon Sep 17 00:00:00 2001 From: Tomasz Kulasek Date: Thu, 26 Apr 2018 17:10:00 +0200 Subject: [PATCH] blobstore: fix payload offset incrementation on operation split On operation split, payload pointer should be incremented by the number of bytes, not by op_length which indicates the number of pages. Change-Id: I5d40b6ff7f39b599fe8c8072ee7879848a6af848 Signed-off-by: Tomasz Kulasek Reviewed-on: https://review.gerrithub.io/409201 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- lib/blob/blobstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blob/blobstore.c b/lib/blob/blobstore.c index f90a4404b..2de4af703 100644 --- a/lib/blob/blobstore.c +++ b/lib/blob/blobstore.c @@ -1587,7 +1587,7 @@ _spdk_blob_request_submit_op_split_next(void *cb_arg, int bserrno) ctx->pages_remaining -= op_length; ctx->page_offset += op_length; if (op_type == SPDK_BLOB_WRITE || op_type == SPDK_BLOB_READ) { - ctx->curr_payload += op_length; + ctx->curr_payload += (op_length * SPDK_BS_PAGE_SIZE); } switch (op_type) {