Thread (4 messages) flat view 4 messages, 2 authors, 8d ago

Re: [PATCH 1/2] vhost-scsi: preserve event ordering

From: Mike Christie <michael.christie@oracle.com>
Date: 2026-09-15 21:03:45
Also in: kvm, lkml, virtualization

On 9/15/26 4:42 AM, physicalmtea@gmail.com wrote:
quoted hunk ↗ jump to hunk
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
index 7a1f39a32..37f681aab 100644
--- a/drivers/vhost/scsi.c
+++ b/drivers/vhost/scsi.c
@@ -637,7 +637,7 @@ static void vhost_scsi_complete_events(struct vhost_scsi *vs, bool drop)
  	struct llist_node *llnode;
  
  	mutex_lock(&vq->mutex);
-	llnode = llist_del_all(&vs->vs_event_list);
+	llnode = llist_reverse_order(llist_del_all(&vs->vs_event_list));
  	llist_for_each_entry_safe(evt, t, llnode, list) {
  		if (!drop)
  			vhost_scsi_do_evt_work(vs, evt);
-- 
2.34.1
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help