From: Dominique Martinet <asmadeus@codewreck.org>
To: "Jürgen Groß" <jgross@suse.com>, "Rosen Penev" <rosenp@gmail.com>
Cc: v9fs@lists.linux.dev, Eric Van Hensbergen <ericvh@kernel.org>,
Latchesar Ionkov <lucho@ionkov.net>,
Christian Schoenebeck <linux_oss@crudebyte.com>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] 9p/xen: Use flexible array for data rings
Date: Sun, 13 Sep 2026 18:51:50 +0900 [thread overview]
Message-ID: <aqZyNoWsZp9mvrN9@codewreck.org> (raw)
In-Reply-To: <147ee577-8a72-407c-b332-45dda9f153b3@suse.com>
Jürgen Groß wrote on Wed, May 27, 2026 at 07:39:07AM +0200:
> On 19.05.26 03:57, Rosen Penev wrote:
> > Store the fixed set of Xen 9p data rings in the frontend private
> > allocation instead of allocating a separate rings array.
> >
> > This keeps the data ring storage tied to the frontend lifetime and
> > simplifies the allocation and cleanup paths.
> >
> > Assisted-by: Codex:GPT-5.5
> > Signed-off-by: Rosen Penev <rosenp@gmail.com>
> > ---
> > net/9p/trans_xen.c | 68 ++++++++++++++++++++--------------------------
> > 1 file changed, 30 insertions(+), 38 deletions(-)
> >
> > diff --git a/net/9p/trans_xen.c b/net/9p/trans_xen.c
> > index f9fb2db7a066..5a110d71d18c 100644
> > --- a/net/9p/trans_xen.c
> > +++ b/net/9p/trans_xen.c
> > @@ -55,7 +55,7 @@ struct xen_9pfs_front_priv {
> > char *tag;
> > struct p9_client *client;
> > - struct xen_9pfs_dataring *rings;
> > + struct xen_9pfs_dataring rings[];
>
> Any reason not to use rings[XEN_9PFS_NUM_RINGS] instead of a flex array?
Rosen, do you intend to resend with this fixed number?
Given that's just a two line diff from your patch (just changing the
type and keeping kzalloc_obj instead of kzalloc_flex) I can do it myself
but I also don't have any direct merit from it, so if I don't hear back
I'll forget about this
(unless Jürgen says he actually read the whole diff and it's worth
taking for simplification, I don't have time...)
Thanks,
--
Dominique Martinet | Asmadeus
prev parent reply other threads:[~2026-09-13 9:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-19 1:57 Rosen Penev
2026-05-27 5:39 ` Jürgen Groß
2026-05-27 6:38 ` Rosen Penev
2026-05-27 10:07 ` Jürgen Groß
2026-09-13 9:51 ` Dominique Martinet [this message]
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=aqZyNoWsZp9mvrN9@codewreck.org \
--to=asmadeus@codewreck.org \
--cc=ericvh@kernel.org \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux_oss@crudebyte.com \
--cc=lucho@ionkov.net \
--cc=rosenp@gmail.com \
--cc=v9fs@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®