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 <tomaszx.kulasek@intel.com> Reviewed-on: https://review.gerrithub.io/409201 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
5bafc240e5
commit
5557a572f5
@ -1587,7 +1587,7 @@ _spdk_blob_request_submit_op_split_next(void *cb_arg, int bserrno)
|
|||||||
ctx->pages_remaining -= op_length;
|
ctx->pages_remaining -= op_length;
|
||||||
ctx->page_offset += op_length;
|
ctx->page_offset += op_length;
|
||||||
if (op_type == SPDK_BLOB_WRITE || op_type == SPDK_BLOB_READ) {
|
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) {
|
switch (op_type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user