]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
drivers/virtio/blk: Downgrade empty queue message
authorMichalis Pappas <michalis@unikraft.io>
Mon, 25 Sep 2023 14:27:16 +0000 (16:27 +0200)
committerRazvan Deaconescu <razvand@unikraft.io>
Fri, 20 Oct 2023 16:35:55 +0000 (19:35 +0300)
Due to virtio using separate data and control paths, it is normal for
the queue to be observed as empty if the interrupt arrives before the
write can be observed by the driver. Downgrade the severity of the log
message to `debug`.

Signed-off-by: Marc Rittinghaus <marc.rittinghaus@kit.edu>
Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Andrei Topala <topala.andrei@gmail.com>
Reviewed-by: Marco Schlumpp <marco@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1115

drivers/virtio/blk/virtio_blk.c

index 8060172b16739b0ed0d4a58bc12a454124594483..d3e8b94da9f3c1e59f512ee43acbd4016639ef07 100644 (file)
@@ -386,7 +386,7 @@ static int virtio_blkdev_queue_dequeue(struct uk_blkdev_queue *queue,
        ret = virtqueue_buffer_dequeue(queue->vq, (void **) &response_req,
                        &len);
        if (ret < 0) {
-               uk_pr_info("No data available in the queue\n");
+               uk_pr_debug("No data available in the queue\n");
                return 0;
        }