All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Kirch <okir@suse.de>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: nfs@lists.sourceforge.net, Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] NFS nolock broken in 2.6.9-rc4
Date: Fri, 15 Oct 2004 17:12:57 +0200	[thread overview]
Message-ID: <20041015151257.GF27307@suse.de> (raw)
In-Reply-To: <1097851471.5558.12.camel@lade.trondhjem.org>

On Fri, Oct 15, 2004 at 04:44:31PM +0200, Trond Myklebust wrote:
> NO! The correct way to do this is to handle it with a call to
> posix_lock_file() in the NFS code for the particular case of "nolock".

Urrrgh.. this looks complicated and duplicates code. Then I'd rather
have two struct file_operations, one for normal operations with a .lock
function, and a second one for nolock without.

> for details on why the changes were made (and that should make it
> obvious why your patch is wrong). The VFS must NOT be allowed to
> interfere if a filesystem has its own ->lock() method: that will violate
> the ability of filesystems to impose rigid locking rules.

My patch doesn't interfere; it just falls back to the original code if
the fs routine returns LOCK_USE_CLNT. In that respect, it doesn't
interfere with the new code.

Olaf
-- 
Olaf Kirch     | Things that make Monday morning interesting, #1:
okir@suse.de   |        "I want to use NFS over AX25, can you help me?"
---------------+ 


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2004-10-15 15:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-15  9:58 [PATCH] NFS nolock broken in 2.6.9-rc4 Olaf Kirch
2004-10-15 10:07 ` Olaf Kirch
2004-10-15 14:46   ` Trond Myklebust
2004-10-15 15:11     ` Trond Myklebust
2004-10-15 15:13       ` Trond Myklebust
     [not found]   ` <20041016004957.38ccd273.akpm@osdl.org>
2004-10-18  7:39     ` Olaf Kirch
2004-10-15 14:44 ` Trond Myklebust
2004-10-15 15:12   ` Olaf Kirch [this message]
2004-10-15 15:21     ` Olaf Kirch
2004-10-15 16:47       ` 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=20041015151257.GF27307@suse.de \
    --to=okir@suse.de \
    --cc=akpm@osdl.org \
    --cc=nfs@lists.sourceforge.net \
    --cc=trond.myklebust@fys.uio.no \
    /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.