]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
blk:BlockDevice.cc: use pending_aios instead of iovec size as ios num 37823/head
authorweixinwei <xinweiwei90@gmail.com>
Fri, 29 May 2020 14:43:31 +0000 (22:43 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 26 Oct 2020 21:48:57 +0000 (22:48 +0100)
Signed-off-by: weixinwei <xinweiwei90@gmail.com>
(cherry picked from commit 64ce414b022b96b7a5c73d2c03393a877b30e508)

Conflicts:
src/blk/BlockDevice.cc
- file does not exist in Nautilus; made the changes manually in
  src/os/bluestore/BlockDevice.cc

src/os/bluestore/BlockDevice.cc

index bba9a96cd6808994c5c6940adfad2a9a3006b260..edfc2fb9c8453b4e23cd0f02aae867b19160a15e 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;