summaryrefslogtreecommitdiffstats
path: root/src/os/bluestore/aio.cc
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2017-11-19 19:04:59 +0100
committerKefu Chai <kchai@redhat.com>2017-11-20 04:18:02 +0100
commit57e792bcae285ae02e347740960dbff60b7b21a4 (patch)
tree75884d170adad94989249be40cf767528c5a549a /src/os/bluestore/aio.cc
parentMerge pull request #18776 from JianyuLi/joa-mul-mds (diff)
downloadceph-57e792bcae285ae02e347740960dbff60b7b21a4.tar.xz
ceph-57e792bcae285ae02e347740960dbff60b7b21a4.zip
bluestore: enable building bluestore w/o libaio
KernelDevice is tightly coupled with libaio. more work is needed to decouple aio from it. but by guarding KernelDevice with HAVE_LIBAIO, we can enable bluestore on platforms w/o libaio. Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/os/bluestore/aio.cc')
-rw-r--r--src/os/bluestore/aio.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/os/bluestore/aio.cc b/src/os/bluestore/aio.cc
index 79e07115bec..3598702dbfd 100644
--- a/src/os/bluestore/aio.cc
+++ b/src/os/bluestore/aio.cc
@@ -3,8 +3,6 @@
#include "aio.h"
-#if defined(HAVE_LIBAIO)
-
std::ostream& operator<<(std::ostream& os, const aio_t& aio)
{
unsigned i = 0;
@@ -72,5 +70,3 @@ int aio_queue_t::get_next_completed(int timeout_ms, aio_t **paio, int max)
}
return r;
}
-
-#endif