From: Jeff Layton <jlayton@redhat.com>
To: Sage Weil <sage@newdream.net>
Cc: "open list:CEPH DISTRIBUTED..." <ceph-devel@vger.kernel.org>
Subject: Re: lingering caps outstanding after client shutdown?
Date: Tue, 26 Sep 2017 10:06:53 -0400 [thread overview]
Message-ID: <1506434813.3182.27.camel@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.11.1709261330380.27895@piezo.novalocal>
On Tue, 2017-09-26 at 13:31 +0000, Sage Weil wrote:
> On Tue, 26 Sep 2017, Jeff Layton wrote:
> > In order to get the correct semantics for a delegation or oplock,
> we
> > need to be able to break delegations on open.
>
> Can you explain this part? How do the delegation/oplock semantics
> relate
> to open(2)? I would assume they are related to reads and writes (and
> data
> consistency). Unless it's a CIFS thing?
You're correct that we only really need to break delegations on
conflicting access, but there is a problem here:
NFS clients can cache shared/deny mode locks if they hold a delegation.
Once you've granted an open, it's too late to go back and enforce it
once you go to recall the delegation.
Since we don't enforce deny mode locks in cephfs, we could argue that
all of that is the purview of the NFS server and not worry about
it...at least until we toss something like samba into the mix, at which
point things get a bit more complicated...
--
Jeff Layton <jlayton@redhat.com>
next prev parent reply other threads:[~2017-09-26 14:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-26 13:24 lingering caps outstanding after client shutdown? Jeff Layton
2017-09-26 13:31 ` Sage Weil
2017-09-26 14:06 ` Jeff Layton [this message]
2017-09-26 17:34 ` 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=1506434813.3182.27.camel@redhat.com \
--to=jlayton@redhat.com \
--cc=ceph-devel@vger.kernel.org \
--cc=sage@newdream.net \
/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.