diff options
author | Bartosz Golaszewski <[email protected]> | 2024-08-23 11:33:23 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2024-09-03 17:11:05 -0500 |
commit | 8f62819aaace77dd85037ae766eb767f8c4417ce (patch) | |
tree | fa176d1760bf08e148e38ae41632fc8a67700859 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | f1536585588ba630c533b6ffbca8ad8424aa5c39 (diff) |
PCI/pwrctl: Rescan bus on a separate thread
If we trigger the bus rescan from sysfs, we'll try to lock the PCI rescan
mutex recursively and deadlock - the platform device will be populated and
probed on the same thread that handles the sysfs write.
Add a workqueue to the pwrctl code on which we schedule the rescan for
controlled PCI devices. While at it: add a new interface for initializing
the pwrctl context where we'd now assign the parent device address and
initialize the workqueue.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 4565d2652a37 ("PCI/pwrctl: Add PCI power control core code")
Reported-by: Konrad Dybcio <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions