Fix ccs_kernel_service() for Linux 5.5+ kernels.
@@ -3732,7 +3732,9 @@ | ||
3732 | 3732 | static bool ccs_kernel_service(void) |
3733 | 3733 | { |
3734 | 3734 | /* Nothing to do if I am a kernel service. */ |
3735 | -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) | |
3735 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0) | |
3736 | + return (current->flags & (PF_KTHREAD | PF_IO_WORKER)) == PF_KTHREAD; | |
3737 | +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) | |
3736 | 3738 | return current->flags & PF_KTHREAD; |
3737 | 3739 | #else |
3738 | 3740 | return segment_eq(get_fs(), KERNEL_DS); |