From: bugzilla-daemon@bugzilla.kernel.org
To: linux-ext4@vger.kernel.org
Subject: [Bug 15827] New: ext4_get_blocks may be called while ext4_truncate() is in progress
Date: Wed, 21 Apr 2010 15:43:20 GMT [thread overview]
Message-ID: <bug-15827-13602@https.bugzilla.kernel.org/> (raw)
https://bugzilla.kernel.org/show_bug.cgi?id=15827
Summary: ext4_get_blocks may be called while ext4_truncate()
is in progress
Product: File System
Version: 2.5
Kernel Version: v2.6.29-rc5
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: high
Priority: P1
Component: ext4
AssignedTo: fs_ext4@kernel-bugs.osdl.org
ReportedBy: dmonakhov@openvz.org
Regression: No
Created an attachment (id=26081)
--> (https://bugzilla.kernel.org/attachment.cgi?id=26081)
dmesg output
During truncate we may need to restart new transaction, to avoid deadlock on
i_data_sem it was dropped
commit 487caeef9fc08c0565e082c40a8aaf58dad92bbb
Author: Jan Kara <jack@suse.cz>
Date: Mon Aug 17 22:17:20 2009 -0400
Jan given a good explanation why this approach would work, I have better
explanation why this can't work work.
Yes we have blocked all writers beyond i_size, but writers(flush, page_mkwrite)
before i_size still may change node blocks, so 'path' which was lookup by
truncate is not longer valid. So we are in big big troubles.
I've add created inode's history tracer patch which spotted the issue.
See attachments.
--- Comment #1 from Dmitry Monakhov <dmonakhov@openvz.org> 2010-04-21 15:41:13 ---
Created an attachment (id=26082)
--> (https://bugzilla.kernel.org/attachment.cgi?id=26082)
debug patch against ext4.git/next + patches from bug #15792
The debug patch is rather ugly, but still useful.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
next reply other threads:[~2010-04-21 15:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 15:43 bugzilla-daemon [this message]
2010-07-06 7:15 ` [Bug 15827] ext4_get_blocks may be called while ext4_truncate() is in progress bugzilla-daemon
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=bug-15827-13602@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=linux-ext4@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;
as well as URLs for NNTP newsgroup(s).