]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix build errors when spdk is on 16118/head
authorIlsoo Byun <ilsoo.byun@sk.com>
Wed, 5 Jul 2017 05:42:10 +0000 (01:42 -0400)
committerIlsoo Byun <ilsoo.byun@sk.com>
Wed, 5 Jul 2017 05:42:10 +0000 (01:42 -0400)
- remove pthread library link from dpdk cmake
- fix the bugs of NVMEDevice

Signed-off-by: Ilsoo Byun <ilsoo.byun@sk.com>
cmake/modules/Finddpdk.cmake
src/os/bluestore/NVMEDevice.cc
src/os/bluestore/NVMEDevice.h

index 6ce9966458d56c2b33e035b1fdf11fb66095d3b2..343420a8ed7eae2f420fe7bad9b25b9572b0ce69 100644 (file)
@@ -71,5 +71,5 @@ if (EXISTS ${WITH_DPDK_MLX5})
   list(APPEND check_LIBRARIES -libverbs)
 endif()
   set(DPDK_LIBRARIES
-    -Wl,--whole-archive ${check_LIBRARIES} -lpthread -Wl,--no-whole-archive)
+    -Wl,--whole-archive ${check_LIBRARIES} -Wl,--no-whole-archive)
 endif(DPDK_FOUND)
index 9d1a84066720ca670802b06e8050830a246634a9..2eb278aa0d08c2d6b184dcd3dc739e09406bfd3b 100644 (file)
@@ -1028,7 +1028,7 @@ int NVMEDevice::aio_write(
 int NVMEDevice::write(uint64_t off, bufferlist &bl, bool buffered)
 {
   // FIXME: there is presumably a more efficient way to do this...
-  IOContext ioc(NULL);
+  IOContext ioc(cct, NULL);
   aio_write(off, bl, &ioc, buffered);
   ioc.aio_wait();
   return 0;
index a44b1e1ecc9e0d6e5afeaa6d93342657278c848f..40378eaec16b33bf3fc30923184a492e28b12689 100644 (file)
@@ -28,6 +28,7 @@
 #include "include/interval_set.h"
 #include "common/ceph_time.h"
 #include "common/Mutex.h"
+#include "common/Cond.h"
 #include "BlockDevice.h"
 
 enum class IOCommand {