From: Jeff Layton <jlayton@redhat.com>
To: Peter Staubach <pstaubach@exagrid.com>
Cc: Chuck Lever <chuck.lever@oracle.com>,
"bfields@fieldses.org" <bfields@fieldses.org>,
"steved@redhat.com" <steved@redhat.com>,
"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH v3 4/5] nfsd: add a header describing upcall to nfsdcld
Date: Wed, 21 Dec 2011 20:04:02 -0500 [thread overview]
Message-ID: <20111221200402.1e87326d@corrin.poochiereds.net> (raw)
In-Reply-To: <FA8A9A935BFD3A4D8F0CDA1C4F611BCC057ECD1C22@IT-1874.Isys.com>
On Wed, 21 Dec 2011 17:33:23 -0500
Peter Staubach <pstaubach@exagrid.com> wrote:
> I will need to disagree with the assertion regarding XDR and the packed struct. XDR can handle a versioned struct very neatly. It can do so just as easily as text string parsing and with greatly reduced overhead.
>
Ok, I'll bite -- what does XDR give us in this situation over a packed
struct?
Clearly there are benefits when the producer and consumer may have
considerable differences, as is the case between networked hosts. For
instance, different endianness or word size, etc.
Here though, the producer and consumer are the same host, so we can be
reasonably sure that the endianness is the same. I made sure to define
the struct with explicit sizes for the fields, so word size isn't a
factor. There's also a version field at the head so we could
potentially rev the upcall struct version later if needed. An XDR
format would need the same thing...
AFAICS, Using XDR is just going to add extra overhead here, but not
eliminate any of the drawbacks. If we have to rev the format later,
we'll be in the same situation.
A text based upcall has similar issues too, but it does at least make
debugging simpler. As Chuck points out too, there is some variability
in arguments as well. I think too that we're going to end up adding
some other upcalls here, and those will also need a different set
of arguments from what's there today.
--
Jeff Layton <jlayton@redhat.com>
next prev parent reply other threads:[~2011-12-22 1:02 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 20:34 [PATCH v3 0/5] nfsd: overhaul the client name tracking code Jeff Layton
2011-12-21 20:34 ` [PATCH v3 1/5] nfsd: add nfsd4_client_tracking_ops struct and a way to set it Jeff Layton
2011-12-21 20:34 ` [PATCH v3 2/5] sunrpc: create nfsd dir in rpc_pipefs Jeff Layton
2011-12-21 20:34 ` [PATCH v3 3/5] nfsd: convert nfs4_client->cl_cb_flags to a generic flags field Jeff Layton
2011-12-21 20:34 ` [PATCH v3 4/5] nfsd: add a header describing upcall to nfsdcld Jeff Layton
2011-12-21 20:45 ` Chuck Lever
2011-12-21 21:33 ` Jeff Layton
2011-12-21 21:37 ` Chuck Lever
2011-12-21 21:48 ` Jeff Layton
2011-12-21 21:59 ` Jeff Layton
2011-12-21 22:04 ` Peter Staubach
2011-12-21 22:21 ` Chuck Lever
2011-12-21 22:31 ` Peter Staubach
2011-12-21 22:50 ` Chuck Lever
2011-12-21 22:27 ` Jeff Layton
2011-12-21 22:33 ` Peter Staubach
2011-12-22 1:04 ` Jeff Layton [this message]
2011-12-22 13:07 ` Jeff Layton
2011-12-22 15:20 ` Jim Rees
2011-12-22 15:23 ` Jim Rees
2011-12-22 18:07 ` J. Bruce Fields
2011-12-21 20:34 ` [PATCH v3 5/5] nfsd: add the infrastructure to handle the cld upcall Jeff Layton
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=20111221200402.1e87326d@corrin.poochiereds.net \
--to=jlayton@redhat.com \
--cc=bfields@fieldses.org \
--cc=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
--cc=pstaubach@exagrid.com \
--cc=steved@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).