linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: fuliankun <fuliankun@cn.fujitsu.com>
To: linux-nfs@vger.kernel.org
Subject: nfsv4 read delegation issue
Date: Wed, 22 Dec 2010 19:44:48 +0800	[thread overview]
Message-ID: <4D11E4B0.3020302@cn.fujitsu.com> (raw)

Open read delegation and file locks implementation in the kernel 
2.6.37-rc1 are not consistent with the RFC3530.

In the kernel 2.6.37-rc1:
1.NFS client mount NFS filesytem with nfsv4.
2.The client open a NFS file with O_RDONLY,then the server may return
  a read delegation to the client.
3.for some reasons, the network between client and server is partition.
4.the client lock the opened file with F_RDLCK again.If the client has 
  the read delegation at the step 2,it will return ture.In fact,the
  client doesn't send the read lock request to the NFS service.It does
  operate the request at local.

But the RFC3530 descripts as:
9.4.2.  Open Delegation and File Locks

   When a client holds a write open delegation, lock operations may be
   performed locally.  This includes those required for mandatory file
   locking.  This can be done since the delegation implies that there
   can be no conflicting locks.  Similarly, all of the revalidations
   that would normally be associated with obtaining locks and the
   flushing of data associated with the releasing of locks need not be
   done.

   When a client holds a read open delegation, lock operations are not
   performed locally.  All lock operations, including those requesting
   non-exclusive locks, are sent to the server for resolution.

Is this a bug or  the kernel have other considerations When it implements
this function?

                 reply	other threads:[~2010-12-22  3:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4D11E4B0.3020302@cn.fujitsu.com \
    --to=fuliankun@cn.fujitsu.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).