Skip to content

Commit

Permalink
Merge pull request ceph#38780 from majianpeng/fix-wrong-num_ios
Browse files Browse the repository at this point in the history
os/bluestore: fix wrong num_ios for read op.

Reviewed-by: xie xingguo <[email protected]>
  • Loading branch information
tchaikov committed Jan 12, 2021
2 parents 918e2aa + 4ad5316 commit f136b51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9754,9 +9754,9 @@ int BlueStore::_do_read(
if (r < 0)
return r;

int64_t num_ios = length;
int64_t num_ios = blobs2read.size();
if (ioc.has_pending_aios()) {
num_ios = -ioc.get_num_ios();
num_ios = ioc.get_num_ios();
bdev->aio_submit(&ioc);
dout(20) << __func__ << " waiting for aio" << dendl;
ioc.aio_wait();
Expand Down

0 comments on commit f136b51

Please sign in to comment.