aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util
diff options
context:
space:
mode:
authorAlex Williamson <[email protected]>2024-03-08 16:05:24 -0700
committerAlex Williamson <[email protected]>2024-03-11 13:08:52 -0600
commitb620ecbd17a03cacd06f014a5d3f3a11285ce053 (patch)
tree9d7a9e555f51df588944b834daa552a86abd2c2f /tools/perf/scripts/python/Perf-Trace-Util
parent810cd4bb53456d0503cc4e7934e063835152c1b7 (diff)
vfio: Introduce interface to flush virqfd inject workqueue
In order to synchronize changes that can affect the thread callback, introduce an interface to force a flush of the inject workqueue. The irqfd pointer is only valid under spinlock, but the workqueue cannot be flushed under spinlock. Therefore the flush work for the irqfd is queued under spinlock. The vfio_irqfd_cleanup_wq workqueue is re-used for queuing this work such that flushing the workqueue is also ordered relative to shutdown. Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Reviewed-by: Eric Auger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions