]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
blk:BlockDevice.cc: use pending_aios instead of iovec size as ios num
authorweixinwei <xinweiwei90@gmail.com>
Fri, 29 May 2020 14:43:31 +0000 (22:43 +0800)
committerweixinwei <xinweiwei90@gmail.com>
Fri, 29 May 2020 14:43:31 +0000 (22:43 +0800)
Signed-off-by: weixinwei <xinweiwei90@gmail.com>
src/blk/BlockDevice.cc

index c1d9d7ca9a74b1a85791c54870b0ebca8c76a9ce..99e9cce72661c726144271b7cca3410f565eaa7f 100644 (file)
@@ -73,9 +73,7 @@ uint64_t IOContext::get_num_ios() const
   // that to the bytes value.
   uint64_t ios = 0;
 #if defined(HAVE_LIBAIO) || defined(HAVE_POSIXAIO)
-  for (auto& p : pending_aios) {
-    ios += p.iov.size();
-  }
+  ios += pending_aios.size();
 #endif
 #ifdef HAVE_SPDK
   ios += total_nseg;