> From: Jia Jia <[email protected]>
> 
> 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 <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=1


Reply via email to