Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102106949
D30144.id88747.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
882 B
Referenced Files
None
Subscribers
None
D30144.id88747.diff
View Options
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -925,6 +925,8 @@
&pci_enable_pcie_hp, 0,
"Enable support for native PCI-express HotPlug.");
+TASKQUEUE_DEFINE_THREAD(pci_hp);
+
static void
pcib_probe_hotplug(struct pcib_softc *sc)
{
@@ -1154,7 +1156,7 @@
*/
if (schedule_task &&
(pcib_hotplug_present(sc) != 0) != (sc->child != NULL))
- taskqueue_enqueue(taskqueue_thread, &sc->pcie_hp_task);
+ taskqueue_enqueue(taskqueue_pci_hp, &sc->pcie_hp_task);
}
static void
@@ -1449,7 +1451,7 @@
error = pcib_release_pcie_irq(sc);
if (error)
return (error);
- taskqueue_drain(taskqueue_thread, &sc->pcie_hp_task);
+ taskqueue_drain(taskqueue_pci_hp, &sc->pcie_hp_task);
callout_drain(&sc->pcie_ab_timer);
callout_drain(&sc->pcie_cc_timer);
callout_drain(&sc->pcie_dll_timer);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 8, 4:56 PM (11 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14539018
Default Alt Text
D30144.id88747.diff (882 B)
Attached To
Mode
D30144: PCI hot-plug: use dedicated taskqueue for device attach / detach
Attached
Detach File
Event Timeline
Log In to Comment