Skip to content

Commit

Permalink
blobstore: fix payload offset incrementation on operation split
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-on: https://review.gerrithub.io/409201
Tested-by: SPDK Automated Test System <[email protected]>
Reviewed-by: Daniel Verkamp <[email protected]>
Reviewed-by: Jim Harris <[email protected]>
Reviewed-by: Ben Walker <[email protected]>
  • Loading branch information
Tomasz Kulasek authored and danielverkamp committed Apr 26, 2018
1 parent 5bafc24 commit 5557a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blob/blobstore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5557a57

Please sign in to comment.