From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Dave Jones <davej@suse.de>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: More fun with fsx.
Date: Sun, 16 Dec 2001 19:48:45 +0100 [thread overview]
Message-ID: <15388.60557.527680.468341@charged.uio.no> (raw)
In-Reply-To: <Pine.LNX.4.33.0112161625200.876-100000@Appserv.suse.de>
In-Reply-To: <Pine.LNX.4.33.0112161557070.876-100000@Appserv.suse.de> <Pine.LNX.4.33.0112161625200.876-100000@Appserv.suse.de>
>>>>> " " == Dave Jones <davej@suse.de> writes:
> On Sun, 16 Dec 2001, Dave Jones wrote:
>> > > Full log of the failcase is at
>> > > http://www.codemonkey.org.uk/cruft/nfs-fsx.txt
>> > Which kernel and mount options?
>> client 2.4.13-ac5, server 2.4.17rc1, default options, nothing
>> special. I'll try to reproduce with a newer kernel on the
>> client.
> Yup, it's still there with 2.4.17-rc1 as the client too. Exact
> same failure.
I found the bug. It's a pretty ugly race...
The problem is that although the inode->i_sem semaphore protects you
against races with ordinary writes, it does *not* protect you against
the memory management routines (such as page_launder()) from calling
writepage() on dirty pages.
For most local filesystems, this is not a problem, since they can call
vmtruncate() *before* they do their thing on the disk itself. For
non-local filesystems, you usually can't do this, since you cannot
guarantee that the RPC call will succeed on the server.
The only solution I can see, is to force a synchronous write of those
dirty pages to the server prior to calling setattr. I've updated the
patch on
http://www.fys.uio.no/~trondmy/src/2.4.17/linux-2.4.17-fattr.dif
to do this. Fixes the race for me...
Cheers,
Trond
next prev parent reply other threads:[~2001-12-16 18:49 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-15 15:40 fsx for Linux showing up reiserfs problem? Dave Jones
2001-12-15 16:18 ` Martin Josefsson
2001-12-15 16:52 ` More fun with fsx Dave Jones
2001-12-15 17:08 ` [reiserfs-dev] fsx for Linux showing up reiserfs problem? Hans Reiser
2001-12-16 14:53 ` More fun with fsx Trond Myklebust
2001-12-16 14:58 ` Dave Jones
2001-12-16 15:26 ` Dave Jones
2001-12-16 15:39 ` Trond Myklebust
2001-12-16 15:47 ` Dave Jones
2001-12-16 15:50 ` Trond Myklebust
2001-12-16 18:48 ` Trond Myklebust [this message]
2001-12-16 20:59 ` Dave Jones
2001-12-16 21:19 ` Trond Myklebust
2001-12-16 21:34 ` Dave Jones
2001-12-17 0:00 ` Trond Myklebust
2001-12-17 1:33 ` Trond Myklebust
2001-12-17 1:37 ` Dave Jones
2001-12-17 1:47 ` Trond Myklebust
2001-12-17 1:50 ` Dave Jones
2001-12-17 2:51 ` Dave Jones
2001-12-17 9:59 ` Trond Myklebust
2001-12-17 14:30 ` Dave Jones
2001-12-17 14:41 ` Dave Jones
2001-12-17 16:06 ` Trond Myklebust
2001-12-17 16:15 ` Dave Jones
2001-12-18 20:31 ` David S. Miller
2001-12-18 20:36 ` Dave Jones
2001-12-20 15:55 ` Nathan Straz
2001-12-20 16:02 ` Dave Jones
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=15388.60557.527680.468341@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=davej@suse.de \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®