[Devel] [PATCH RHEL9 COMMIT] Revert "drivers/vhost: Don't panic on double flush of a virtqueue"

Konstantin Khorenko khorenko at virtuozzo.com
Wed Nov 16 17:03:16 MSK 2022


The commit is pushed to "branch-rh9-5.14.0-70.22.1.vz9.17.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-70.22.1.vz9.17.9
------>
commit 2054ff63d2978fc9953203c168cf5663d45ea82a
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Wed Nov 16 15:54:11 2022 +0300

    Revert "drivers/vhost: Don't panic on double flush of a virtqueue"
    
    This reverts commit dde9d64f5e1097cd178e166817ce96b252724c50.
    
    Will apply v5 of the patchset.
    https://jira.sw.ru/browse/PSBM-139414
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 drivers/vhost/vhost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index 6f40018adda5..cac369ca6f0c 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -284,7 +284,7 @@ void vhost_work_flush_vq(struct vhost_virtqueue *vq)
 {
 	struct vhost_worker *w = READ_ONCE(vq->worker);
 
-	if (!w || !w->worker)
+	if (!w)
 		return;
 
 	vhost_worker_flush(w);


More information about the Devel mailing list