From c1d8bb02dcc5111ad82b86bb41e29278e9f5fa33 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 5 Nov 2024 12:49:31 +0100 Subject: [PATCH] blk/kernel: add missing includes Signed-off-by: Max Kellermann --- src/blk/kernel/KernelDevice.cc | 8 ++++++++ src/blk/kernel/io_uring.cc | 1 + src/blk/kernel/io_uring.h | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/src/blk/kernel/KernelDevice.cc b/src/blk/kernel/KernelDevice.cc index 5bbef93632045..db06d30528634 100644 --- a/src/blk/kernel/KernelDevice.cc +++ b/src/blk/kernel/KernelDevice.cc @@ -25,6 +25,7 @@ #include #include "KernelDevice.h" +#include "log/Log.h" #include "include/buffer_raw.h" #include "include/intarith.h" #include "include/types.h" @@ -33,6 +34,7 @@ #include "include/str_map.h" #include "common/blkdev.h" #include "common/buffer_instrumentation.h" +#include "common/Clock.h" // for ceph_clock_now() #include "common/errno.h" #if defined(__FreeBSD__) #include "bsm/audit_errno.h" @@ -43,6 +45,12 @@ #include "global/global_context.h" #include "io_uring.h" +#ifdef WITH_CRIMSON +#include "crimson/common/perf_counters_collection.h" +#else +#include "common/perf_counters_collection.h" +#endif + #define dout_context cct #define dout_subsys ceph_subsys_bdev #undef dout_prefix diff --git a/src/blk/kernel/io_uring.cc b/src/blk/kernel/io_uring.cc index 85f1a5f999f84..d438af8e1081b 100644 --- a/src/blk/kernel/io_uring.cc +++ b/src/blk/kernel/io_uring.cc @@ -7,6 +7,7 @@ #include "liburing.h" #include +#include using std::list; using std::make_unique; diff --git a/src/blk/kernel/io_uring.h b/src/blk/kernel/io_uring.h index 918328d6cb891..1535ba3c55c8d 100644 --- a/src/blk/kernel/io_uring.h +++ b/src/blk/kernel/io_uring.h @@ -8,6 +8,10 @@ #include "include/types.h" #include "aio/aio.h" +#include +#include +#include + struct ioring_data; struct ioring_queue_t final : public io_queue_t { -- 2.39.5