]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: add an async flush
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 21 Mar 2013 23:04:10 +0000 (16:04 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 23 Apr 2013 18:33:18 +0000 (11:33 -0700)
commit31a45e8e23ebf9815ce5a4e0c89ddbf384702aad
treef5d215969093e600e90962fc526770acd3db0fe0
parentf2e490cb5b1f322e637d787e788733ac4b2496f4
librbd: add an async flush

At this point it's a simple wrapper around the ObjectCacher or
librados.

This is needed for QEMU so that its main thread can continue while a
flush is occurring. Since this will be backported, don't update the
librbd version yet, just add a #define that QEMU and others can use to
detect the presence of aio_flush().

Refs: #3737
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit 302b93c478b3f4bc2c82bfb08329e3c98389dd97)
src/include/rbd/librbd.h
src/include/rbd/librbd.hpp
src/librbd/AioCompletion.h
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/internal.cc
src/librbd/internal.h
src/librbd/librbd.cc
src/test/librbd/test_librbd.cc