From cb8c3a47256de60fe6119229d49344cc1bd79ec8 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 3 Jan 2021 02:54:08 +0000 Subject: [PATCH] scst: Fix percpu-ref reinitialization for RHEL 8 / CentOS 8 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9319 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scst/include/backport.h b/scst/include/backport.h index 2d3787c8d..1752c6e2f 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -1229,12 +1229,14 @@ static inline int pcie_capability_read_dword(struct pci_dev *dev, int pos, #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0) +#if !defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 8 /* * See also commit 09ed79d6d75f ("percpu_ref: introduce PERCPU_REF_ALLOW_REINIT * flag") # v5.3. */ #define PERCPU_REF_ALLOW_REINIT 0 #endif +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) #define PERCPU_COUNT_BIAS (1U << 31)