Skip to content

Commit

Permalink
os/bluestore: reap ioc when stopping aio_thread.
Browse files Browse the repository at this point in the history
there is possibillity that reap_ioc don't excute when stopping
aio_thread. so add reap_ioc after aio_thread is stopped.

Signed-off-by: Haodong Tang <haodong.tang@intel.com>
  • Loading branch information
haodong committed Nov 7, 2016
1 parent ebb6f5e commit f10d55f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/os/bluestore/KernelDevice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ void KernelDevice::_aio_stop()
aio_stop = true;
aio_thread.join();
aio_stop = false;
reap_ioc();
aio_queue.shutdown();
}
}
Expand Down

0 comments on commit f10d55f

Please sign in to comment.