From: Fernando Luis Vázquez Cao Date: Mon, 27 Oct 2008 09:45:15 +0000 (+0900) Subject: virtio_blk: set queue paravirt flag X-Git-Tag: v2.6.29-rc1~569^2~41 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7d116b626b843c66b17630a62d696e044d049bfc;p=linux-2.6-omap-h63xx.git 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: Fernando Luis Vazquez Cao Signed-off-by: Jens Axboe --- diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 85d79a02d48..f151592ecf7 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c @@ -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) {