> From: Li RongQing <[email protected]> > > The IN_ORDER feature uses additional software state to track the next > available descriptor and in-flight descriptor batches. > > virtqueue_init() resets the common virtqueue state, but free_head and > batch_last.id are initialized only when the virtqueue is created. When > an IN_ORDER virtqueue is reset, these fields can retain state from the > previous queue instance. > > Reset free_head and invalidate batch_last when initializing an IN_ORDER > virtqueue. Keep this in virtqueue_init() so the state is initialized > consistently for both newly created and reset virtqueues. > > Fixes: f6a15d854986 ("virtio_ring: add in order support") > Signed-off-by: Li RongQing <[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
