From: Andrew Morton <akpm@osdl.org>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fix inode state corruption (2.6.8-rc1-bk1)
Date: Tue, 13 Jul 2004 11:57:16 -0700 [thread overview]
Message-ID: <20040713115716.4db55d72.akpm@osdl.org> (raw)
In-Reply-To: <E1BkNI0-0007j5-00@dorka.pomaz.szeredi.hu>
Miklos Szeredi <miklos@szeredi.hu> wrote:
>
> This patch fixes a hard-to-trigger condition, where the inode is on
> the inode_in_use list while it's state is dirty. In this state dirty
> pages are not written back in sync() or from kupdate, only from direct
> page reclaim. And this causes a livelock in balance_dirty_pages after
> a while.
How ghastly.
Why did you make the list movement conditional on non-zero `wait'?
It would be equivalent to remove these lines from __mark_inode_dirty():
/*
* If the inode is locked, just update its dirty state.
* The unlocker will place the inode on the appropriate
* superblock list, based upon its state.
*/
if (inode->i_state & I_LOCK)
goto out;
but probably not so good, because that could cause other tasks to come
around and wait on this inode while it is under writeout instead of writing
back different inodes.
next prev parent reply other threads:[~2004-07-13 18:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-13 13:25 Miklos Szeredi
2004-07-13 18:57 ` Andrew Morton [this message]
2004-07-13 19:48 ` Miklos Szeredi
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=20040713115716.4db55d72.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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®