Re: [PATCH v3 0/2] PCI/aer_inject: Adjust locking for PREEMPT_RT

From: Waiman Long
Date: Sun Oct 26 2025 - 19:16:54 EST


On 10/26/25 12:43 AM, Guangbo Cui wrote:
This patch series addresses locking issues in the AER injection
path under PREEMPT_RT.

Signed-off-by: Guangbo Cui <jckeep.cuiguangbo@xxxxxxxxx>
---
Changes in v3:
- Remove unnecessary lock in aer_inject_exit.
- Link to v2: https://lore.kernel.org/all/20251009150651.93618-1-jckeep.cuiguangbo@xxxxxxxxx/

---
Guangbo Cui (2):
PCI/aer_inject: Convert inject_lock to raw_spinlock_t
PCI/aer_inject: Remove unnecessary lock in aer_inject_exit

You should reverse the patch ordering. Patch 2 should come first before the patch 1. Otherwise, applying just patch 1 without patch 2 will fail compilation.

Cheers,
Longman


drivers/pci/pcie/aer_inject.c | 33 +++++++++++++++------------------
1 file changed, 15 insertions(+), 18 deletions(-)