From: "J. Bruce Fields" <bfields@fieldses.org>
To: Ric Wheeler <ric@emc.com>
Cc: John Stoffel <john@stoffel.org>,
Peter Staubach <staubach@redhat.com>,
Robin Lee Powell <rlpowell@digitalkingdom.org>,
linux-kernel@vger.kernel.org
Subject: Re: NFS hang + umount -f: better behaviour requested.
Date: Fri, 24 Aug 2007 11:53:17 -0400 [thread overview]
Message-ID: <20070824155317.GC32175@fieldses.org> (raw)
In-Reply-To: <46CEF49A.2050105@emc.com>
On Fri, Aug 24, 2007 at 11:09:14AM -0400, Ric Wheeler wrote:
> J. Bruce Fields wrote:
>> The NFS server alone can't prevent the problems Peter Staubach refers
>> to. Their frequency also depends on the network and the way you're
>> using the filesystem. (A sufficiently paranoid application accessing
>> the filesystem could function correctly despite the problems caused by
>> soft mounts, but the degree of paranoia required probably isn't common.)
>>
> Would it be sufficient to insure that that application always issues an
> fsync() before closing any recently written/updated file? Is there some
> other subtle paranoid techniques that should be used?
NFS already syncs on close (and on unlock), so you should just need to
check the return values from any writes, fsyncs, closes, etc. (and
realize that an error there may mean some or all of the previous writes
to this file descriptor failed). And operations like mkdir have the
same problem--a timeout leaves you not knowing whether the directory was
created, because you don't know whether the operation reached the server
or not.
I assume the problems with executables that Peter Staubach refers to are
due to reads on mmap'd files timing out.
I don't use soft mounts myself and haven't had to debug user problems
with them, so my understanding of it all is purely theoretical--others
will have a better idea when and how these kinds of failures actually
manifest themselves in practice.
--b.
next prev parent reply other threads:[~2007-08-24 15:53 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 22:54 NFS hang + umount -f: better behaviour requested Robin Lee Powell
2007-08-20 23:27 ` Neil Brown
2007-08-20 23:34 ` Robin Lee Powell
2007-08-21 1:51 ` Salah Coronya
2007-08-21 16:43 ` John Stoffel
2007-08-21 16:55 ` J. Bruce Fields
2007-08-21 17:01 ` Peter Staubach
2007-08-21 17:14 ` Chakri n
2007-08-21 17:14 ` Robin Lee Powell
2007-08-21 17:18 ` Peter Staubach
2007-08-21 18:50 ` John Stoffel
2007-08-21 19:04 ` Peter Staubach
2007-08-21 19:25 ` J. Bruce Fields
2007-08-24 15:09 ` Ric Wheeler
2007-08-24 15:37 ` Peter Staubach
2007-08-24 15:53 ` J. Bruce Fields [this message]
2007-08-21 23:04 ` Valdis.Kletnieks
2007-08-22 10:03 ` Theodore Tso
2007-08-22 15:26 ` John Stoffel
2007-08-31 8:06 ` Ian Kent
2007-08-31 15:10 ` Valdis.Kletnieks
2007-08-31 15:30 ` Ian Kent
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=20070824155317.GC32175@fieldses.org \
--to=bfields@fieldses.org \
--cc=john@stoffel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ric@emc.com \
--cc=rlpowell@digitalkingdom.org \
--cc=staubach@redhat.com \
/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