diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-30 23:07:16 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-02-13 22:20:14 (GMT) |
commit | 5a996ff0e75255a6cc7abf8981d9910e48e63908 (patch) | |
tree | 96f7a3ab3bccf41701dd364c06ee52f01e69da30 /drivers | |
parent | 7de899ef9cd8732947d53bf28ba06e269941cdad (diff) | |
download | linux-fsl-qoriq-5a996ff0e75255a6cc7abf8981d9910e48e63908.tar.xz |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/access.c b/drivers/pci/access.c index 0857ca9..8bb624e 100644 --- a/drivers/pci/access.c +++ b/drivers/pci/access.c @@ -465,7 +465,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); |