public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] virtio_blk: use noop elevator by default
@ 2008-08-26 12:48 Fernando Luis Vázquez Cao
  2008-08-26 14:39 ` Jens Axboe
  0 siblings, 1 reply; 11+ messages in thread
From: Fernando Luis Vázquez Cao @ 2008-08-26 12:48 UTC (permalink / raw)
  To: rusty; +Cc: linux-kernel

Hi Rusty,

Would it make sense to use noop by default? After all we do not know
what is behind the backend driver and the hypervisor is likely to do its
own scheduling anyway. I guess this is the reason the Xen guys took this
approach.

What do you think about the patch below?

- Fernando

---

From: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Subject: [PATCH] virtio_blk: use noop elevator by default

Using the noop elevator by default seems to be safest bet because we do
not know what is behind the backend driver and the hypervisor is likely
to do its own scheduling anyway.

Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
---

diff -urNp linux-2.6.27-rc4/drivers/block/virtio_blk.c linux-2.6.27-rc4-fixes/drivers/block/virtio_blk.c
--- linux-2.6.27-rc4/drivers/block/virtio_blk.c	2008-08-26 21:26:01.000000000 +0900
+++ linux-2.6.27-rc4-fixes/drivers/block/virtio_blk.c	2008-08-26 21:22:03.000000000 +0900
@@ -237,6 +237,8 @@ static int virtblk_probe(struct virtio_d
 		goto out_put_disk;
 	}
 
+	elevator_init(rq, "noop");
+
 	if (index < 26) {
 		sprintf(vblk->disk->disk_name, "vd%c", 'a' + index % 26);
 	} else if (index < (26 + 1) * 26) {



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-11-05 10:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-26 12:48 [PATCH] virtio_blk: use noop elevator by default Fernando Luis Vázquez Cao
2008-08-26 14:39 ` Jens Axboe
2008-08-27  5:14   ` Fernando Luis Vázquez Cao
2008-10-27  9:44     ` [PATCH 1/3] block: add queue flag for paravirt frontend drivers Fernando Luis Vázquez Cao
2008-10-27 12:56       ` Jens Axboe
2008-11-04 23:23         ` Jeremy Fitzhardinge
2008-11-05  9:20           ` Jens Axboe
2008-11-05 10:49             ` Fernando Luis Vázquez Cao
2008-10-27  9:45     ` [PATCH 2/3] virtio_blk: set queue paravirt flag Fernando Luis Vázquez Cao
2008-10-27  9:45     ` [PATCH 3/3] xen-blkfront: " Fernando Luis Vázquez Cao
2008-10-27  9:43   ` [PATCH] virtio_blk: use noop elevator by default Fernando Luis Vázquez Cao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox