We need Giant as we run in a taskqueue_thread via linux_work.
This fix detaching amdgpu and i915kms.
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential D35478
linuxkpi: Acquire giant when adding/removing i2c adapters manu on Jun 14 2022, 11:25 AM. Authored by Tags None Referenced Files
Subscribers
Details We need Giant as we run in a taskqueue_thread via linux_work. Sponsored by: Beckhoff Automation GmbH & Co. KG
Diff Detail
Event TimelineComment Actions I don't know why I don't need this but looking at the device_delete_child and bus_generic_attach code we need giant. Comment Actions If I'm not mistaken you should just bus_topo_lock() and bus_topo_unlock() instead of referring Giant directly! Comment Actions Nothing new in the tree should refer to Giant... I'll have to see if we can poison that to keep it from proliferating. |