Skip to content

Commit

Permalink
pci: Use __wake_up_all_locked in pci_unblock_user_cfg_access()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
KAGA-KOKO authored and Sebastian Andrzej Siewior committed Dec 12, 2016
1 parent 638c59e commit 6620276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/access.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,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);
Expand Down

0 comments on commit 6620276

Please sign in to comment.