From: Suresh Jayaraman <sjayaraman@suse.de>
To: Jeff Layton <jlayton@redhat.com>
Cc: "J. Bruce Fields" <bfields@fieldses.org>,
Chuck Lever <chuck.lever@oracle.com>,
Trond Myklebust <Trond.Myklebust@netapp.com>,
Sachin Prabhu <sprabhu@redhat.com>,
linux-nfs <linux-nfs@vger.kernel.org>
Subject: Re: Should we be aggressively invalidating cache when using -onolock?
Date: Tue, 05 Oct 2010 20:49:33 +0530 [thread overview]
Message-ID: <4CAB4205.9020004@suse.de> (raw)
In-Reply-To: <20101005102752.67b75416@tlielax.poochiereds.net>
On 10/05/2010 07:57 PM, Jeff Layton wrote:
> On Mon, 20 Sep 2010 14:25:36 -0400
> "J. Bruce Fields" <bfields@fieldses.org> wrote:
>
>> On Mon, Sep 20, 2010 at 10:41:59AM -0400, Chuck Lever wrote:
>>> At one point long ago, I had asked Trond if we could get rid of the
>>> cache-invalidation-on-lock behavior if "-onolock" was in effect. He
>>> said at the time that this would eliminate the only recourse
>>> applications have for invalidating the data cache in case it was
>>> stale, and NACK'd the request.
>>
>> Argh. I guess I can see the argument, though.
>>
>>> I suggested introducing a new mount option called "llock" that would
>>> be semantically the same as "llock" on other operating systems, to do
>>> this. It never went anywhere.
>>>
>>> We now seem to have a fresh opportunity to address this issue with the
>>> recent addition of "local_lock". Can we augment this option or add
>>> another which allows better control of caching behavior during a file
>>> lock?
>>
>> I wouldn't stand in the way, but it does start to sound like a rather
>> confusing array of choices.
>>
>
> I can sort of see the argument too, but on the other hand...does anyone
> *really* use locks in this way? If we want a mechanism to allow the
> client to force cache invalidation on an inode it seems like we'd be
> better off with an interface for that purpose only (dare I say
> ioctl? :).
>
> Piggybacking this behavior into the locking interfaces seems like it
> punishes -o nolock performance for the benefit of some questionable
> usage patterns.
>
+ 1
> Mixing this in with -o local_lock also seems confusing, but if we want
I too think it would be confusing and unwarranted. A separate interface
would be a better choice IMHO..
--
Suresh Jayaraman
next prev parent reply other threads:[~2010-10-05 15:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1103741.22.1284726314119.JavaMail.sprabhu@dhcp-1-233.fab.redhat.com>
2010-09-17 12:26 ` Should we be aggressively invalidating cache when using -onolock? Sachin Prabhu
2010-09-17 17:46 ` J. Bruce Fields
2010-09-18 11:09 ` Jeff Layton
2010-09-19 18:53 ` J. Bruce Fields
2010-09-20 14:41 ` Chuck Lever
2010-09-20 18:25 ` J. Bruce Fields
2010-10-05 14:27 ` Jeff Layton
2010-10-05 15:19 ` Suresh Jayaraman [this message]
[not found] ` <20101005102752.67b75416-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2010-10-20 10:42 ` Sachin Prabhu
[not found] <14128115.54.1284995685991.JavaMail.sprabhu@dhcp-1-233.fab.redhat.com>
2010-09-20 15:15 ` Sachin Prabhu
2010-09-20 15:19 ` Chuck Lever
2010-09-20 15:34 ` Sachin Prabhu
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=4CAB4205.9020004@suse.de \
--to=sjayaraman@suse.de \
--cc=Trond.Myklebust@netapp.com \
--cc=bfields@fieldses.org \
--cc=chuck.lever@oracle.com \
--cc=jlayton@redhat.com \
--cc=linux-nfs@vger.kernel.org \
--cc=sprabhu@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 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.