* [Bug 14602] JBD2 journal abort / checkpoint creation racy?
2009-11-14 12:05 [Bug 14602] New: " bugzilla-daemon
@ 2009-11-15 22:28 ` bugzilla-daemon
2009-11-16 16:04 ` bugzilla-daemon
2009-11-16 18:59 ` bugzilla-daemon
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2009-11-15 22:28 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14602
Theodore Tso <tytso@mit.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tytso@mit.edu
--- Comment #1 from Theodore Tso <tytso@mit.edu> 2009-11-15 22:27:58 ---
If the journal is aborted, then any attempts to destroy the journal, checkpoint
the journal, create a new transaction, etc., will result in -EIO being
returned. In the code that you quoted, the EIO is being returned because
is_journal_aborted(journal) returns true.
The normal reason why the journal gets aborted is because ext4_error() has
called ext4_handle_error(), which then calls jbd2_journal_abort() and the
errors behavior is remount-read-only. The basic idea is that if some kind of
file system error or corruption has been detected, we want to stop the file
system from any further modifications, which might cause more damage and/or
user data loss.
We don't have a good errno value to use, so we just use EIO, and the error
handling after an aborted journal is admittedly not great. It triggers a lot
of scary, and to someone who isn't an ext3/ext4 veteran, misleading, error
messages, and unfortunately it can cause the key initial failure to scroll off
of a VT console.
So it's not a race condition; the system is functioning as designed, although
at some point we may put in better error handling and some earlier tests for an
aborted journal in some of the upper layers of various ext4 functions.
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 14602] JBD2 journal abort / checkpoint creation racy?
2009-11-14 12:05 [Bug 14602] New: " bugzilla-daemon
2009-11-15 22:28 ` [Bug 14602] " bugzilla-daemon
@ 2009-11-16 16:04 ` bugzilla-daemon
2009-11-16 18:59 ` bugzilla-daemon
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2009-11-16 16:04 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14602
--- Comment #2 from Andi Kleen <andi-bz@firstfloor.org> 2009-11-16 16:04:33 ---
Hmm, it still seems strange because sometimes the error happens and more often
not, even when triggering the same underlying inode IO error. I think
something is at least inconsistent.
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 14602] JBD2 journal abort / checkpoint creation racy?
2009-11-14 12:05 [Bug 14602] New: " bugzilla-daemon
2009-11-15 22:28 ` [Bug 14602] " bugzilla-daemon
2009-11-16 16:04 ` bugzilla-daemon
@ 2009-11-16 18:59 ` bugzilla-daemon
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2009-11-16 18:59 UTC (permalink / raw)
To: linux-ext4
http://bugzilla.kernel.org/show_bug.cgi?id=14602
--- Comment #3 from Theodore Tso <tytso@mit.edu> 2009-11-16 18:59:35 ---
Well, an I/O error won't cause an ext4_error() --- unless the garbage returned
is corrupted enough that it causes the ext4 file system code to decide to throw
an ext4_error. So the fact that you sometimes get an aborted journal (caused
by an ext4_error) isn't entirely surprising.
The ext4_error is going to depend on whether or not the ext4 fs code things the
file system is corrupted, which is going to be data dependent, and that might
be variable after an I/O error. The real problem may be that we need to be
doing a better job of doing error checking....
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 14602] JBD2 journal abort / checkpoint creation racy?
[not found] <bug-14602-13602@https.bugzilla.kernel.org/>
@ 2013-12-10 17:04 ` bugzilla-daemon
0 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2013-12-10 17:04 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=14602
Alan <alan@lxorguk.ukuu.org.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |alan@lxorguk.ukuu.org.uk
Resolution|--- |OBSOLETE
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-10 17:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <bug-14602-13602@https.bugzilla.kernel.org/>
2013-12-10 17:04 ` [Bug 14602] JBD2 journal abort / checkpoint creation racy? bugzilla-daemon
2009-11-14 12:05 [Bug 14602] New: " bugzilla-daemon
2009-11-15 22:28 ` [Bug 14602] " bugzilla-daemon
2009-11-16 16:04 ` bugzilla-daemon
2009-11-16 18:59 ` bugzilla-daemon
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).