fuzz: block: Ensure the virtio-block thread is killed and joined
This also ensures that the 'queue_evt' is fully processed, as we enforce
the main thread is waiting for the virtio-block thread to process the
'kill_evt' which is after the 'queue_evt' processing.
@@ -114,6 +114,8 @@ fuzz_target!(|bytes| {
queue_evt.write(77).unwrap(); // Rings the doorbell, any byte will do.
wait_queue_event_processed(queue_evt);
+
+ block.reset(); // Ensure the virtio-block device thread is killed and joined
});
fn read_u64<T: Read>(readable: &mut T) -> u64 {
