diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-12-01 00:07:16 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-04-10 16:36:41 -0500 |
commit | 6576a47241f6bb3691e2423df606e25fc7c19b40 (patch) | |
tree | 89c49c5dc0126e9ceee5d4ae27c2946a5b243903 /drivers | |
parent | 5e0410175d2a8fdbfb6b8fd4acd6cb42f2a0eb34 (diff) |
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 fdaa42aac7c6..1a6cc6730286 100644 --- a/drivers/pci/access.c +++ b/drivers/pci/access.c @@ -441,7 +441,7 @@ void pci_unblock_user_cfg_access(struct pci_dev *dev) 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); |