[PATCH V2 0/3] flush workers on suspend

Steve Sistare posted 3 patches 1 year, 10 months ago
There is a newer version of this series
drivers/vdpa/vdpa_sim/vdpa_sim.c   | 13 +++++++++++++
drivers/vdpa/vdpa_user/vduse_dev.c | 24 ++++++++++++++++++++++++
drivers/vhost/vdpa.c               |  3 +++
3 files changed, 40 insertions(+)
[PATCH V2 0/3] flush workers on suspend
Posted by Steve Sistare 1 year, 10 months ago
Flush to guarantee no workers are running when suspend returns,
for vdpa, vpa_sim, and vduse.  (mlx5 already does so, via the path
mlx5_vdpa_suspend -> unregister_link_notifier -> flush_workqueue.)

Steve Sistare (3):
  vhost-vdpa: flush workers on suspend
  vduse: suspend
  vdpa_sim: flush workers on suspend

 drivers/vdpa/vdpa_sim/vdpa_sim.c   | 13 +++++++++++++
 drivers/vdpa/vdpa_user/vduse_dev.c | 24 ++++++++++++++++++++++++
 drivers/vhost/vdpa.c               |  3 +++
 3 files changed, 40 insertions(+)

-- 
2.39.3
Re: [PATCH V2 0/3] flush workers on suspend
Posted by Steven Sistare 1 year, 10 months ago
On 2/12/2024 12:16 PM, Steve Sistare wrote:
> Flush to guarantee no workers are running when suspend returns,
> for vdpa, vpa_sim, and vduse.  (mlx5 already does so, via the path
> mlx5_vdpa_suspend -> unregister_link_notifier -> flush_workqueue.)

Changes in V2:
  - renamed "vduse: suspend" (was vduse: flush workers on suspend)
  - call vhost_dev_flush unconditionally in "vhost-vdpa: flush workers on suspend"

- Steve

> Steve Sistare (3):
>   vhost-vdpa: flush workers on suspend
>   vduse: suspend
>   vdpa_sim: flush workers on suspend
> 
>  drivers/vdpa/vdpa_sim/vdpa_sim.c   | 13 +++++++++++++
>  drivers/vdpa/vdpa_user/vduse_dev.c | 24 ++++++++++++++++++++++++
>  drivers/vhost/vdpa.c               |  3 +++
>  3 files changed, 40 insertions(+)
>