From: Suresh Jayaraman <sjayaraman@suse.de>
To: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Neil Brown <neilb@suse.de>,
Linux NFS mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] nfs: introduce mount option '-olocal_lock' to make locks local
Date: Mon, 20 Sep 2010 14:57:00 +0530 [thread overview]
Message-ID: <4C9728E4.9070205@suse.de> (raw)
In-Reply-To: <1284761749.16553.18.camel@heimdal.trondhjem.org>
On 09/18/2010 03:45 AM, Trond Myklebust wrote:
> On Thu, 2010-09-16 at 11:44 +0530, Suresh Jayaraman wrote:
>> Hi Trond,
>>
>> I'm resending this patch as a separate email as I have not heard from you.
>>
>> Changes since last post:
>> - remove unneeded NFS_MOUNT_NONLM flag checks from do_getlk()/do_setlk()/do_unlck
>> - update comments to include the new mount option
>>
>
> Hi Suresh,
>
> Just a couple of comments:
>
> * Firstly the legacy binary mount interface uses
> NFS_MOUNT_NONLM=0x200, so we cannot change that value. What I
> was suggesting was rather that we just parse it to mean
> NFS_MOUNT_LOCAL_FLOCK | NFS_MOUNT_LOCAL_FCNTL.
Ah, ok. Will fix it in the next spin.
> * Have you tested this with NFSv4? I think I asked you this
> previously, but I haven't seen an answer. I ask because -onolock
> used to cause NFSv4 reboot recovery to Oops since the struct
> file_lock didn't have any associated nfsv4 lock state. I just
> want to make sure we're not re-enabling that bug.
>
I had earlier tested the patch with NFSv4 but I didn't test the reboot
recovery. And, you guessed it right - with "-olocal_lock=all", the patch
causes an oops in _nfs4_do_setlk() when the server recovers after a
reboot. Clearing the new flags in nfs4_validate_mount_flags() fixes the
problem. Also, I have updated the patch to take into account the nfsroot
case.
I also noticed Chuck's recent patchset will move nfsroot option
handling. I'll rebase by patch against nfs-2.6.git and resend it.
Thanks,
--
Suresh Jayaraman
next prev parent reply other threads:[~2010-09-20 9:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-16 6:14 [PATCH] nfs: introduce mount option '-olocal_lock' to make locks local Suresh Jayaraman
2010-09-17 22:15 ` Trond Myklebust
2010-09-20 9:27 ` Suresh Jayaraman [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-09-09 19:36 Suresh Jayaraman
2010-09-09 20:20 ` Jeff Layton
2010-09-09 23:14 ` Suresh Jayaraman
2010-09-10 1:44 ` Trond Myklebust
2010-09-10 4:07 ` Suresh Jayaraman
2010-09-10 4:24 ` Neil Brown
2010-09-10 6:09 ` Suresh Jayaraman
2010-09-14 5:06 ` Suresh Jayaraman
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=4C9728E4.9070205@suse.de \
--to=sjayaraman@suse.de \
--cc=Trond.Myklebust@netapp.com \
--cc=linux-nfs@vger.kernel.org \
--cc=neilb@suse.de \
/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.