Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d116b62 authored by Fernando Luis Vázquez Cao's avatar Fernando Luis Vázquez Cao Committed by Jens Axboe
Browse files

virtio_blk: set queue paravirt flag



As a paravirt front-end driver, virtio_blk is not a rotational device so
we want do avoid idling in AS/CFQ. Tell the block layer about this.

Signed-off-by: default avatarFernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 88e740f1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -237,6 +237,8 @@ static int virtblk_probe(struct virtio_device *vdev)
		goto out_put_disk;
	}

	queue_flag_set_unlocked(QUEUE_FLAG_VIRT, vblk->disk->queue);

	if (index < 26) {
		sprintf(vblk->disk->disk_name, "vd%c", 'a' + index % 26);
	} else if (index < (26 + 1) * 26) {