lkml.org 
[lkml]   [2024]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRE: [PATCH 3/7] vfio: Introduce interface to flush virqfd inject workqueue
    Date
    > From: Alex Williamson <alex.williamson@redhat.com>
    > Sent: Thursday, March 7, 2024 5:15 AM
    >
    > 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.
    >
    > Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

    Reviewed-by: Kevin Tian <kevin.tian@intel.com>

    \
     
     \ /
      Last update: 2024-03-07 09:58    [W:2.862 / U:0.400 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site