From: Stephen Hemminger <shemminger@vyatta.com>
To: Nick Piggin <npiggin@suse.de>
Cc: linux-fsdevel@vger.kernel.org, Al Viro <viro@zeniv.linux.org.uk>
Subject: Re: Many warnings on 2.6.29 from your sync_single_inode warning
Date: Thu, 28 May 2009 08:07:30 -0700 [thread overview]
Message-ID: <20090528080730.3172df12@nehalam> (raw)
In-Reply-To: <20090528060333.GA6920@wotan.suse.de>
On Thu, 28 May 2009 08:03:33 +0200
Nick Piggin <npiggin@suse.de> wrote:
> On Tue, May 26, 2009 at 11:06:21AM -0700, Stephen Hemminger wrote:
> > The WARN_ON you introduced in
> > fs: new inode i_state corruption fix
> >
> > Triggers every time during our regression test. The regression test runs
> > on a VM under VMWare. Any ideas?
>
> Thanks. Adding linux-fsdevel.
>
> I guess you're mounting with -osync or -odirsync, or opening with O_SYNC?
>
> I think it's a false positive. The filesystem code syncs the inode to disk
> just after creating it but before doing an unlock_new_inode on it to
> clear I_NEW. I believe this should not result in any race, because it is
> called by the guy who has created the inode and he never clears I_NEW. The
> race came about when pdflush would be able to perform writeout in this
> window, and non-atomic updates of i_state would race with the creator when
> they are messing with i_state (without inode_lock held, because inode is
> new).
>
> We could add some convoluted checks to try to allow for this, but I think
> we might as well just rip out the checks...
>
> Would anyone prefer me to try to keep them? If not, I'll send a patch to
> rip them out.
You are right the file system is mounted on a virtual floppy device with -o sync.
That explains it.
This also explains why it only shows up in regression system (developers usually
install the software). The floppy is useful for saving configuration when
running off live cd.
prev parent reply other threads:[~2009-05-28 15:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090526110621.261c8a1b@nehalam>
2009-05-28 6:03 ` Many warnings on 2.6.29 from your sync_single_inode warning Nick Piggin
2009-05-28 15:07 ` Stephen Hemminger [this message]
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=20090528080730.3172df12@nehalam \
--to=shemminger@vyatta.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=npiggin@suse.de \
--cc=viro@zeniv.linux.org.uk \
/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;
as well as URLs for NNTP newsgroup(s).