linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dave Quigley <dpquigl@davequigley.com>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Cc: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: Another try at LNFS?
Date: Tue, 08 May 2012 01:24:50 -0400	[thread overview]
Message-ID: <4FA8AE22.3000305@davequigley.com> (raw)
In-Reply-To: <4FA345DA4F4AE44899BD2B03EEEC2FA915A300@SACEXCMBX04-PRD.hq.netapp.com>

On 4/5/2012 10:20 PM, Myklebust, Trond wrote:
>> -----Original Message-----
>> From: David Quigley [mailto:dpquigl@davequigley.com]
>> Sent: Thursday, April 05, 2012 2:38 PM
>> To: Myklebust, Trond
>> Cc: linux-nfs@vger.kernel.org
>> Subject: Re: Another try at LNFS?
>>
>> On 04/05/2012 17:26, David Quigley wrote:
>>> On 04/05/2012 13:15, Myklebust, Trond wrote:
>>>> On Thu, 2012-04-05 at 13:02 -0400, David Quigley wrote:
>>>>> Now that we're past the 3.4 merge window should I post the LNFS
>>>>> modifications for review for when 3.5 rolls around?
>>>>
>>>> The sooner the better. It looks as if there will be quite a bit of
>>>> stuff going into 3.5, so it would be nice to maximise our testing
>>>> window.
>>>>
>>>> Thanks!
>>>>    Trond
>>>
>>> I have a mostly working copy for 3.2 which I can forward port but I'm
>>> having an issue with it. The revalidate code changed at some point and
>>> just to get things working I dropped a piece of code from the patch
>>> set that I couldn't figure out how to transition to the new revalidate
>>> code. Unfortunately this is the initial get of the security label so
>>> the security label is invalid until the first cache invalidation. Any
>>> suggestions on where to place this code? I can give you the original
>>> code snippet when I get home that I dropped.
>>>
>>> Dave
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-nfs"
>>> in
>>> the body of a message to majordomo@vger.kernel.org More majordomo
>> info
>>> at  http://vger.kernel.org/majordomo-info.html
>>
>> Looking at my patches it looks like nfs_lookup_revalidate was changed and at
>> the time I couldn't figure out what it was changed to.
>
> Hi Dave,
>    There shouldn't be much in the way of changes in nfs_lookup_revalidate(): I was just trying to clean it up in preparation for the atomic open patches that Miklos is currently working on.
> At this point, it looks as if most of that functionality will in any case be moved into the struct file_operations->open callback, so that we can keep ->d_revalidate() as a pure lookup function.
>
> Cheers
>    Trond


Ok I looked at the code again finally and I think I figured out the 
problem. nfs_prime_dcache is new and there are a couple of calls in 
there that should be taking a label that I just passed null to. We don't 
store the nfs4_label in the inode so I'm not sure how to get the label 
back for the nfs_refresh_inode call and then we have a call to nfs_fhget 
which would normally get us label data. I think the nature of this 
function is what I don't quite understand. When is it called? What I 
think is happening is that I should be pulling the label data into the 
inode in this function but I'm not because I'm passing nulls here. if I 
figure out how to get real label data into the inode at this point I 
should be able to fix the bug where we aren't getting labels until the 
first cache invalidation.

Dave

  parent reply	other threads:[~2012-05-08  5:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-05 17:02 Another try at LNFS? David Quigley
2012-04-05 17:15 ` Myklebust, Trond
2012-04-05 21:26   ` David Quigley
2012-04-05 21:38     ` David Quigley
2012-04-06  2:20       ` Myklebust, Trond
2012-04-06 13:13         ` David Quigley
2012-05-08  5:24         ` Dave Quigley [this message]
2012-05-08 14:46           ` Myklebust, Trond
2012-05-08 16:25             ` David Quigley

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=4FA8AE22.3000305@davequigley.com \
    --to=dpquigl@davequigley.com \
    --cc=Trond.Myklebust@netapp.com \
    --cc=linux-nfs@vger.kernel.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 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).