From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: roger.pau@citrix.com, Konrad Rzeszutek Wilk <konrad@kernel.org>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [Xen-devel] [PATCH RFC] Persistent grant maps for xen blk drivers
Date: Thu, 25 Oct 2012 08:40:14 -0400 [thread overview]
Message-ID: <20121025124013.GB25640@localhost.localdomain> (raw)
In-Reply-To: <5087B77A02000078000A3D00@nat28.tlf.novell.com>
On Wed, Oct 24, 2012 at 08:40:10AM +0100, Jan Beulich wrote:
> >>> On 23.10.12 at 20:50, Konrad Rzeszutek Wilk <konrad@kernel.org> wrote:
> > On Tue, Oct 23, 2012 at 08:09:27PM +0200, Roger Pau Monné wrote:
> >> On 23/10/12 19:20, Konrad Rzeszutek Wilk wrote:
> >> >>>> diff --git a/drivers/block/xen-blkback/blkback.c
> > b/drivers/block/xen-blkback/blkback.c
> >> >>>> index c6decb9..2b982b2 100644
> >> >>>> --- a/drivers/block/xen-blkback/blkback.c
> >> >>>> +++ b/drivers/block/xen-blkback/blkback.c
> >> >>>> @@ -78,6 +78,7 @@ struct pending_req {
> >> >>>> unsigned short operation;
> >> >>>> int status;
> >> >>>> struct list_head free_list;
> >> >>>> + unsigned int unmap_seg[BLKIF_MAX_SEGMENTS_PER_REQUEST];
> >>
> >> Should I change this to a bool? Since we are only setting it to 0 or 1.
> >
> > I would just keep it as 'int'. Eventually we can replace this with a
> > bit-map, but that can be done later.
>
> I think this should be a bitmap from the beginning - why would
> you want to waste 44 bytes per request for something that fits
> in a single unsigned long (and the picture would get worse with
> the number-of-segments extension)?
>
> Also - am I taking this work being done here as a silent agreement
> to not invest into blkif2 to streamline the various extensions
> floating around?
I haven't been able (time-wise) to look at making blkif2 a possibility
and I don't want to hinder this work - which provides great
performance benefits.
next prev parent reply other threads:[~2012-10-25 12:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 11:22 [PATCH RFC] Persistent grant maps for xen blk drivers Roger Pau Monne
2012-10-19 1:34 ` [Xen-devel] " James Harper
2012-10-19 8:26 ` Roger Pau Monné
2012-10-22 13:47 ` Konrad Rzeszutek Wilk
2012-10-23 16:07 ` Roger Pau Monné
2012-10-23 17:20 ` Konrad Rzeszutek Wilk
2012-10-23 18:09 ` Roger Pau Monné
2012-10-23 18:50 ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-10-24 7:40 ` Jan Beulich
2012-10-25 12:40 ` Konrad Rzeszutek Wilk [this message]
2012-10-24 10:45 ` Roger Pau Monné
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=20121025124013.GB25640@localhost.localdomain \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.com \
--cc=konrad@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roger.pau@citrix.com \
--cc=xen-devel@lists.xen.org \
/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.