]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
blk:BlockDevice.cc: use pending_aios instead of iovec size as ios num 36668/head
authorweixinwei <xinweiwei90@gmail.com>
Fri, 29 May 2020 14:43:31 +0000 (22:43 +0800)
committerNathan Cutler <ncutler@suse.com>
Sat, 15 Aug 2020 13:32:03 +0000 (15:32 +0200)
Signed-off-by: weixinwei <xinweiwei90@gmail.com>
(cherry picked from commit 64ce414b022b96b7a5c73d2c03393a877b30e508)

src/os/bluestore/BlockDevice.cc

index 832f6b85393f84569feb60b7fe8e98b85b3fc7ee..db5aecd7545ba0334bdd92ba12d949624ecb4a73 100644 (file)
@@ -64,9 +64,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;