linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: dhowells@redhat.com, viro@ftp.linux.org.uk, hch@infradead.org,
	kwc@citi.umich.edu, jlayton@redhat.com, nickpiggin@yahoo.com.au,
	linux-fsdevel@vger.kernel.org
Subject: Re: Caching semi-digested credentials in struct cred
Date: Thu, 25 Oct 2007 16:45:58 +0100	[thread overview]
Message-ID: <20344.1193327158@redhat.com> (raw)
In-Reply-To: <1193267398.7459.17.camel@heimdal.trondhjem.org>

Trond Myklebust <Trond.Myklebust@netapp.com> wrote:

> You should be using the rpc_auth that is cached in the rpc_client:
> 
>   NFS_CLIENT(inode)->cl_auth
> 
> W.r.t. the nfs_find_open_context(), btw, there is no reason why we
> couldn't change that to take a generic cred as its argument.

I think I've been under a misapprehension as to what rpc_auth is for.  I
assumed it was the credential NFS was using for the operations by the user
that it was created for, but given it's a 'superblock' level thing, I guess
not.

> We have yet to see any numbers comparing the current vs. cred performance.

That's something that concerns me, as does the increased risk of overrunning
the stack.  I'm adding an extra argument to an awful lot of functions, and
it's going to degrade performance, no two ways about it.  The question is by
how much?

> > If you'd rather, I can just drop the credentials into the NFS VFS methods
> > and leave it for you to make work.
> 
> The latter sounds good for the moment. There are several people who are
> working on the rpc auth code, and thus have an interest here, so it will
> take some time to work out a consensus for what needs to be done.

The problem with that is that there are bits in the bottom of the sunrpc stuff
that assume they can use current->fs[ug]id (rpcauth_lookupcred() for example),
which is the reason for passing this pointer all the way down:-/

David

  parent reply	other threads:[~2007-10-25 15:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1193237038.7508.4.camel@heimdal.trondhjem.org>
     [not found] ` <1192634425.7573.5.camel@heimdal.trondhjem.org>
     [not found]   ` <7004.1192630004@redhat.com>
     [not found]     ` <1248.1193234419@redhat.com>
2007-10-24 17:10       ` Caching semi-digested credentials in struct cred David Howells
2007-10-24 17:52         ` Trond Myklebust
2007-10-24 18:41         ` David Howells
2007-10-24 19:39           ` Trond Myklebust
2007-10-24 22:22           ` David Howells
2007-10-24 23:09             ` Trond Myklebust
2007-10-25 15:45             ` David Howells [this message]
2007-10-25 15:59               ` Trond Myklebust

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=20344.1193327158@redhat.com \
    --to=dhowells@redhat.com \
    --cc=Trond.Myklebust@netapp.com \
    --cc=hch@infradead.org \
    --cc=jlayton@redhat.com \
    --cc=kwc@citi.umich.edu \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    --cc=viro@ftp.linux.org.uk \
    /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).