]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
BlueFS: Use num_pending instead of pending_aios
authorHaomai Wang <haomai@xsky.com>
Tue, 5 Jan 2016 18:51:08 +0000 (02:51 +0800)
committerHaomai Wang <haomai@xsky.com>
Mon, 1 Feb 2016 14:00:44 +0000 (22:00 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/os/bluestore/BlueFS.cc

index ab08b24986dbd8fc09c08d4b228039c32285c4c0..c9c27d35538185f71ee03fa6535e2be438766502 100644 (file)
@@ -1049,7 +1049,7 @@ int BlueFS::_flush_range(FileWriter *h, uint64_t offset, uint64_t length)
     x_off = 0;
   }
   for (unsigned i = 0; i < bdev.size(); ++i) {
-    if (!h->iocv[i]->pending_aios.empty()) {
+    if (h->iocv[i]->num_pending.read()) {
       bdev[i]->aio_submit(h->iocv[i]);
     }
   }