]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
bluestore: assert(!num_running) before releasing running_aios
authorKefu Chai <kchai@redhat.com>
Mon, 20 Nov 2017 04:33:40 +0000 (12:33 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 20 Nov 2017 04:33:40 +0000 (12:33 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/BlockDevice.cc

index 004976e8a6b2591d9ee01598174a183958b4d2bc..de8e00375bd75601c55bd033631d867694c416b2 100644 (file)
@@ -76,6 +76,7 @@ uint64_t IOContext::get_num_ios() const
 
 void IOContext::release_running_aios()
 {
+  assert(!num_running);
 #ifdef HAVE_LIBAIO
   // release aio contexts (including pinned buffers).
   running_aios.clear();