]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
pci: Use __wake_up_all_locked pci_unblock_user_cfg_access()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 30 Nov 2011 23:07:16 +0000 (00:07 +0100)
committerMichal Sojka <sojka@merica.cz>
Sun, 13 Sep 2015 07:47:05 +0000 (09:47 +0200)
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

index d9b64a175990cfc4b9bc93c339ae3270b8dcb025..1d0f6f8d0a54f6404677e8411f9c76afc820da86 100644 (file)
@@ -521,7 +521,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);