[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8739d3stmx.fsf@rustcorp.com.au>
Date: Fri, 02 Dec 2011 10:59:42 +1030
From: Rusty Russell <rusty@...tcorp.com.au>
To: Paolo Bonzini <pbonzini@...hat.com>,
Sasha Levin <levinsasha928@...il.com>
Cc: "Michael S. Tsirkin" <mst@...hat.com>,
linux-scsi <linux-scsi@...hat.com>,
LKML <linux-kernel@...r.kernel.org>,
Stefan Hajnoczi <stefanha@...ux.vnet.ibm.com>
Subject: Re: [PATCH 1/2] virtio-scsi: first version
On Thu, 01 Dec 2011 09:36:51 +0100, Paolo Bonzini <pbonzini@...hat.com> wrote:
> On 12/01/2011 07:33 AM, Sasha Levin wrote:
> > On Wed, 2011-11-30 at 14:54 +0100, Paolo Bonzini wrote:
> >> + /* We need to know how many segments before we allocate.
> >> + * We need an extra sg elements at head and tail.
> >> + */
> >> + sg_elems = virtscsi_config_get(vdev, seg_max);
> >
> > Maybe default to one if not specified (=0), like in virtio-blk.
>
> Good idea. Though with sg_elems=1 it is insanely slow.
And a bit over-conservative. If they don't specify a max, you can pick
a number. Make sure it fits in the ring though :)
Thanks,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists