Re: [PATCH V2 2/8] vhost: flush dev once during vhost_dev_stop

2022-05-17 Thread Stefano Garzarella
On Sun, May 15, 2022 at 03:29:16PM -0500, Mike Christie wrote: When vhost_work_dev_flush returns all work queued at that time will have completed. There is then no need to flush after every vhost_poll_stop call, and we can move the flush call to after the loop that stops the pollers. Signed-off-

Re: [PATCH V2 2/8] vhost: flush dev once during vhost_dev_stop

2022-05-16 Thread Jason Wang
在 2022/5/16 04:29, Mike Christie 写道: When vhost_work_dev_flush returns all work queued at that time will have completed. There is then no need to flush after every vhost_poll_stop call, and we can move the flush call to after the loop that stops the pollers. Signed-off-by: Mike Christie Ack

[PATCH V2 2/8] vhost: flush dev once during vhost_dev_stop

2022-05-15 Thread Mike Christie
When vhost_work_dev_flush returns all work queued at that time will have completed. There is then no need to flush after every vhost_poll_stop call, and we can move the flush call to after the loop that stops the pollers. Signed-off-by: Mike Christie --- drivers/vhost/vhost.c | 6 +++--- 1 file