From 0c900b8c2fb4db40ab0d942ab7101989277230b8 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:56:22 +0800 Subject: [PATCH] Fix backport in RHEL9.5 --- src/gasket_interrupt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gasket_interrupt.c b/src/gasket_interrupt.c index 3f8339c..46104ed 100644 --- a/src/gasket_interrupt.c +++ b/src/gasket_interrupt.c @@ -158,7 +158,8 @@ gasket_handle_interrupt(struct gasket_interrupt_data *interrupt_data, read_lock(&interrupt_data->eventfd_ctx_lock); ctx = interrupt_data->eventfd_ctxs[interrupt_index]; if (ctx) - #if LINUX_VERSION_CODE >= KERNEL_VERSION(6,8,0) + #if LINUX_VERSION_CODE >= KERNEL_VERSION(6,8,0) || \ + (defined RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 5)) eventfd_signal(ctx); #else eventfd_signal(ctx, 1);