From 47c8cb8c78fbace1e5edb2107fc1c4dcbe7058be Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Thu, 27 Aug 2020 11:02:30 +0200 Subject: [KERNEL] convert to blk-mq and ktime This converts the dnbd3 kernel module driver to use the blk-mq infrastructure, which allows the dnbd3 kernel module driver to be compatible with Linux kernels in version 5.x or later. The conversion of the implementation uses one hardware queue to preserve the existing send/receive and load-balancing logic, but can be scaled up in the future. In addition to that, time measurements in the implementation are converted to ktime based accessors to replace the use of deprecated time interfaces. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 18ff147..21865e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -231,8 +231,14 @@ IF(BUILD_KERNEL_MODULE) SET(KERNEL_DIR "/lib/modules/${CMAKE_SYSTEM_VERSION}/build") ENDIF() + SET(KERNEL_C_FLAGS "") + IF(KERNEL_C_FLAGS MATCHES Debug) + SET(KERNEL_C_FLAGS "-g -DDEBUG") + ENDIF() + SET(KBUILD_COMMAND ${CMAKE_MAKE_PROGRAM} -C ${KERNEL_DIR} M=${CMAKE_BINARY_DIR} modules + EXTRA_CFLAGS=${KERNEL_C_FLAGS} ) CONFIGURE_FILE(Kbuild.in ${CMAKE_BINARY_DIR}/Kbuild) -- cgit v1.2.3-55-g7522