30 lines
1005 B
Diff
30 lines
1005 B
Diff
From 89f36c4ed5519559922ececc6f47865510d5358d Mon Sep 17 00:00:00 2001
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
Date: Thu, 1 Dec 2011 00:07:16 +0100
|
|
Subject: [053/256] pci: Use __wake_up_all_locked
|
|
pci_unblock_user_cfg_access()
|
|
|
|
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
|
|
---
|
|
drivers/pci/access.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/pci/access.c b/drivers/pci/access.c
|
|
index 2a58164..8e6a88e 100644
|
|
--- a/drivers/pci/access.c
|
|
+++ b/drivers/pci/access.c
|
|
@@ -463,7 +463,7 @@ void pci_cfg_access_unlock(struct pci_dev *dev)
|
|
WARN_ON(!dev->block_cfg_access);
|
|
|
|
dev->block_cfg_access = 0;
|
|
- wake_up_all(&pci_cfg_wait);
|
|
+ wake_up_all_locked(&pci_cfg_wait);
|
|
raw_spin_unlock_irqrestore(&pci_lock, flags);
|
|
}
|
|
EXPORT_SYMBOL_GPL(pci_cfg_access_unlock);
|