From: Tao Ma <tm@tao.ma>
To: Christoph Hellwig <hch@infradead.org>
Cc: Dave Chinner <david@fromorbit.com>, Theodore Ts'o <tytso@mit.edu>,
Jiaying Zhang <jiayingz@google.com>,
linux-ext4@vger.kernel.org
Subject: Re: [URGENT PATCH] ext4: fix potential deadlock in ext4_evict_inode()
Date: Fri, 26 Aug 2011 17:10:35 +0800 [thread overview]
Message-ID: <4E57630B.7000202@tao.ma> (raw)
In-Reply-To: <20110826085057.GA13311@infradead.org>
Hi Christoph,
On 08/26/2011 04:50 PM, Christoph Hellwig wrote:
> On Fri, Aug 26, 2011 at 06:44:03PM +1000, Dave Chinner wrote:
>> While the lockdep report is false positive, I agree that your
>> change is the right fix to make - the IO completions are already
>> queued on the workqueue, so they don't need to be flushed to get
>> them to complete. All that needs to be done is call
>> ext4_ioend_wait() for them to complete, and that gets rid of the
>> i_mutex altogether. (*)
>
> The really correct fix is to stop using the ioend wait like I did
> in my pending series for XFS. The only thing preventing ext4 from
> doing that is that it marks pages uptodate from irq context,
> before finishing the ioends. This has a lot of nasty implications
> as the the page might be marked uptodate without actually having
> that state on disk.
yeah, the DIO read on a buffer write file issue is also another side
effect of it.[1]
So could you please talk a little more about how xfs handle it now?
[1] http://www.spinics.net/lists/linux-ext4/msg27139.html
Thanks
Tao
next prev parent reply other threads:[~2011-08-26 9:10 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-26 3:33 [URGENT PATCH] ext4: fix potential deadlock in ext4_evict_inode() Theodore Ts'o
2011-08-26 3:56 ` Tao Ma
2011-08-26 9:28 ` Tao Ma
2011-08-26 7:35 ` Dave Chinner
2011-08-26 7:42 ` Tao Ma
2011-08-26 8:44 ` Dave Chinner
2011-08-26 8:50 ` Christoph Hellwig
2011-08-26 9:10 ` Tao Ma [this message]
2011-08-26 9:17 ` Christoph Hellwig
2011-08-26 11:35 ` Theodore Tso
2011-08-26 14:53 ` Tao Ma
2011-08-26 9:03 ` Tao Ma
2011-08-26 9:24 ` Dave Chinner
2011-08-26 9:27 ` Tao Ma
2011-08-26 15:52 ` Ted Ts'o
2011-08-26 16:58 ` Jiaying Zhang
2011-08-26 20:22 ` Ted Ts'o
2011-08-27 5:17 ` Jiaying Zhang
2011-08-31 1:15 ` Jiaying Zhang
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=4E57630B.7000202@tao.ma \
--to=tm@tao.ma \
--cc=david@fromorbit.com \
--cc=hch@infradead.org \
--cc=jiayingz@google.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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).