diff options
| author | Jia Jia <physicalmtea@gmail.com> | 2026-09-15 17:42:43 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-11-02 09:06:59 -0500 |
| commit | a9a428115b7d8aa45e12e41899f90f60551bfa82 (patch) | |
| tree | 0cf983da1ef07a8074ef9226a01c6e3f61f03cd3 /tools/perf/scripts/python | |
| parent | acbf36deb53d9e14e4768bf58883795a8232aa5b (diff) | |
vhost-scsi: preserve event ordering
vhost_scsi_send_evt() uses llist_add(), so pending events are LIFO.
vhost_scsi_complete_events() walks the detached list directly.
This can deliver a later hotplug or hotunplug event before an earlier
one.
Reverse the detached list before processing it.
This keeps delivery in enqueue order.
Fixes: a6c9af87363c ("tcm_vhost: Add hotplug/hotunplug support")
Signed-off-by: Jia Jia <physicalmtea@gmail.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260915094244.7900-2-physicalmtea@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
