All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: lustre-devel@lists.lustre.org
Subject: [Lustre-devel] Needed: insight on obd_set_info_async()
Date: Mon, 5 Oct 2009 14:00:54 -0500	[thread overview]
Message-ID: <20091005190053.GD887@Sun.COM> (raw)
In-Reply-To: <20091005171532.GV3789@webber.adilger.int>

On Mon, Oct 05, 2009 at 11:15:32AM -0600, Andreas Dilger wrote:
> On Oct 04, 2009  12:11 -0500, Nicolas Williams wrote:
> > But does it always go over the wire?  Is it always executed with a 'val'
> > that came off the wire?
> 
> No, getinfo/setinfo also operate locally in many places.  The caller isn't
> supposed to know at what lower layer the request will be processed.
> 
> In that regard, the early design goal of the Lustre stack was that it
> has a single API throughout the stack and is transparent whether the
> operations are happening on a local or remote node, but I wasn't at all
> involved in the 2.0 development and that goal has fallen by the wayside.

Thanks.  This helps.  Also, it seems, from what I can tell, that 'val'
is expected to be in local byte order, which also helps.

I've figured out what to do.  There's only a handful of PTLRPCs that
devolve into calls to obd_set_info_async() with 'val's taken from an RPC
buffer, and at each of those places there's a call to ptlrpc_req_need_swab()
and swabbing code.  Each such RPC handler will change the req's format
to one that properly models the 'val', so that it gets swabbed properly
(this was my original plan, but I wasn't sure if obd_set_info_async()
might be doing additional swabbing below, and now it's clear that it
does not).

I'll make sure to check every call to KEY_IS() as well.

Nico
-- 

      reply	other threads:[~2009-10-05 19:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-02 22:06 [Lustre-devel] Needed: insight on obd_set_info_async() Nicolas Williams
2009-10-04  7:34 ` Andreas Dilger
2009-10-04 17:11   ` Nicolas Williams
2009-10-05 17:15     ` Andreas Dilger
2009-10-05 19:00       ` Nicolas Williams [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=20091005190053.GD887@Sun.COM \
    --to=nicolas.williams@sun.com \
    --cc=lustre-devel@lists.lustre.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.