From: Steve Dickson <SteveD@redhat.com>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: "J. Bruce Fields" <bfields@fieldses.org>,
Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH 1/1] exportfs: Stop racing exportfs on clusters
Date: Thu, 08 Mar 2012 10:11:26 -0500 [thread overview]
Message-ID: <4F58CC1E.4030805@RedHat.com> (raw)
In-Reply-To: <AAB0D4F3-A275-482E-A520-06715885B08F@oracle.com>
On 03/07/2012 03:52 PM, Chuck Lever wrote:
>
> On Mar 7, 2012, at 3:50 PM, J. Bruce Fields wrote:
>
>> On Wed, Mar 07, 2012 at 03:36:49PM -0500, bfields wrote:
>>> On Wed, Mar 07, 2012 at 02:56:30PM -0500, Steve Dickson wrote:
>>>> This problem can occur when multiple cluster services fail over
>>>> at the same time, causing missing high-available exports.
>>>> Having a lot of nfs-exports will trigger this issue easier.
>>>
>>> Isn't the locking in support/export/xtab.c supposed to take care of
>>> this?
>>
>> Huh, maybe that's just meant to prevent etab from getting corrupted, or
>> mountd from seeing a partially-written file.
>>
>> But it probably doesn't prevent two exportfs processes from both reading
>> etab, adding an export, and each writing out an etab with its one export
>> added, with the last writer winning.
>>
>> Was that the problem?
>
> For bug 224, yes. After disparate concurrent exportfs commands race, the etab file ends up missing some exports.
This morning I took another look at this and there does indeed need to
be some global lock to stop to serialize dueling exportfs commands. The
locks in xtab.c are just to granular....
steved.
next prev parent reply other threads:[~2012-03-08 15:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-07 19:56 [PATCH 1/1] exportfs: Stop racing exportfs on clusters Steve Dickson
2012-03-07 20:07 ` Chuck Lever
2012-03-07 20:19 ` Steve Dickson
2012-03-07 20:36 ` J. Bruce Fields
2012-03-07 20:50 ` J. Bruce Fields
2012-03-07 20:52 ` Chuck Lever
2012-03-08 15:11 ` Steve Dickson [this message]
2012-03-08 18:53 ` J. Bruce Fields
2012-03-07 20:53 ` Steve Dickson
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=4F58CC1E.4030805@RedHat.com \
--to=steved@redhat.com \
--cc=bfields@fieldses.org \
--cc=chuck.lever@oracle.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 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.