diff options
author | Manuel Bentele | 2021-07-26 14:28:05 +0200 |
---|---|---|
committer | Manuel Bentele | 2021-07-26 14:28:05 +0200 |
commit | a442138a0120769ac085834fb150256ce0afca54 (patch) | |
tree | 2c0622b2d58e57f3245616fb98cdf13dbf5c0da2 | |
parent | Add Github actions to compile kernel module for various kernels (diff) | |
download | xloop-a442138a0120769ac085834fb150256ce0afca54.tar.gz xloop-a442138a0120769ac085834fb150256ce0afca54.tar.xz xloop-a442138a0120769ac085834fb150256ce0afca54.zip |
Add support for CentOS 8.4
-rw-r--r-- | src/kernel/xloop_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/xloop_main.c b/src/kernel/xloop_main.c index fb3f17b..9fe0c70 100644 --- a/src/kernel/xloop_main.c +++ b/src/kernel/xloop_main.c @@ -633,7 +633,8 @@ static void xloop_unprepare_queue(struct xloop_device *xlo) static int xloop_kthread_worker_fn(void *worker_ptr) { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0) +#if (KERNEL_VERSION(5, 8, 0) <= LINUX_VERSION_CODE) || \ + RHEL_CHECK_VERSION(RHEL_RELEASE_VERSION(8, 4) <= RHEL_RELEASE_CODE) current->flags |= PF_LOCAL_THROTTLE | PF_MEMALLOC_NOIO; #else current->flags |= PF_LESS_THROTTLE | PF_MEMALLOC_NOIO; |