From: Marcelo Tosatti <marcelo@kvack.org>
To: Rusty Russell <rusty@rustcorp.com.au>,
Anthony Liguori <aliguori@us.ibm.com>
Cc: kvm-devel <kvm-devel@lists.sourceforge.net>
Subject: [PATCH] virtio-blk: allow more than one in-flight request
Date: Thu, 27 Mar 2008 13:29:48 -0300 [thread overview]
Message-ID: <20080327162948.GB8659@dmt> (raw)
Allow more than one in-flight request in the virtio ring. This allows
the host driver to submit requests in parallel.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 3b1a68d..5bb041f 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -30,6 +30,8 @@ struct virtio_blk
struct scatterlist sg[VIRTIO_MAX_SG];
};
+#define VIRTIO_BLK_POOL_SIZE 32
+
struct virtblk_req
{
struct list_head list;
@@ -202,7 +204,8 @@ static int virtblk_probe(struct virtio_device *vdev)
goto out_free_vblk;
}
- vblk->pool = mempool_create_kmalloc_pool(1,sizeof(struct virtblk_req));
+ vblk->pool = mempool_create_kmalloc_pool(VIRTIO_BLK_POOL_SIZE,
+ sizeof(struct virtblk_req));
if (!vblk->pool) {
err = -ENOMEM;
goto out_free_vq;
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
next reply other threads:[~2008-03-27 16:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-27 16:29 Marcelo Tosatti [this message]
2008-03-27 17:45 ` [PATCH] virtio-blk: allow more than one in-flight request Christian Borntraeger
2008-03-27 20:30 ` Marcelo Tosatti
2008-03-27 23:22 ` Rusty Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080327162948.GB8659@dmt \
--to=marcelo@kvack.org \
--cc=aliguori@us.ibm.com \
--cc=kvm-devel@lists.sourceforge.net \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.