24 lines
879 B
Diff
24 lines
879 B
Diff
Subject: pci: Use __wake_up_all_locked pci_unblock_user_cfg_access()
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
Date: Thu, 01 Dec 2011 00:07:16 +0100
|
|
|
|
The waitqueue is protected by the pci_lock, so we can just avoid to
|
|
lock the waitqueue lock itself. That prevents the
|
|
might_sleep()/scheduling while atomic problem on RT
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
Cc: stable-rt@vger.kernel.org
|
|
Index: linux-rt/drivers/pci/access.c
|
|
===================================================================
|
|
--- linux-rt.orig/drivers/pci/access.c
|
|
+++ linux-rt/drivers/pci/access.c
|
|
@@ -441,7 +441,7 @@ void pci_unblock_user_cfg_access(struct
|
|
WARN_ON(!dev->block_ucfg_access);
|
|
|
|
dev->block_ucfg_access = 0;
|
|
- wake_up_all(&pci_ucfg_wait);
|
|
+ wake_up_all_locked(&pci_ucfg_wait);
|
|
raw_spin_unlock_irqrestore(&pci_lock, flags);
|
|
}
|
|
EXPORT_SYMBOL_GPL(pci_unblock_user_cfg_access);
|