login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
3
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jan Kara <jack@...>
To: Hidehiro Kawai <hidehiro.kawai.ez@...>
Cc: <akpm@...>, <sct@...>, <adilger@...>, <linux-kernel@...>, <linux-ext4@...>, <jbacik@...>, <cmm@...>, <tytso@...>, sugita <yumiko.sugita.yf@...>, Satoshi OSHIMA <satoshi.oshima.fk@...>
Subject:
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
Date: Tuesday, June 3, 2008 - 4:02 am
On Tue 03-06-08 13:40:25, Hidehiro Kawai wrote:
quoted text
> Subject: [PATCH 4/5] jbd: fix error handling for checkpoint io > > When a checkpointing IO fails, current JBD code doesn't check the > error and continue journaling. This means latest metadata can be > lost from both the journal and filesystem. > > This patch leaves the failed metadata blocks in the journal space > and aborts journaling in the case of log_do_checkpoint(). > To achieve this, we need to do: > > 1. don't remove the failed buffer from the checkpoint list where in > the case of __try_to_free_cp_buf() because it may be released or > overwritten by a later transaction > 2. log_do_checkpoint() is the last chance, remove the failed buffer > from the checkpoint list and abort the journal > 3. when checkpointing fails, don't update the journal super block to > prevent the journaled contents from being cleaned. For safety, > don't update j_tail and j_tail_sequence either > 4. when checkpointing fails, notify this error to the ext3 layer so > that ext3 don't clear the needs_recovery flag, otherwise the > journaled contents are ignored and cleaned in the recovery phase > 5. if the recovery fails, keep the needs_recovery flag > 6. prevent cleanup_journal_tail() from being called between > __journal_drop_transaction() and journal_abort() (a race issue > between journal_flush() and __log_wait_for_space() > > Signed-off-by: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
You can add: Acked-by: Jan Kara <jack@suse.cz> Honza -- Jan Kara <jack@suse.cz> SUSE Labs, CR --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/5] jbd: possible filesystem corruption fixes (take 2)
, Hidehiro Kawai
, (Mon Jun 2, 6:40 am)
Re: [PATCH 0/5] jbd: possible filesystem corruption fixes (t...
, Jan Kara
, (Mon Jun 2, 8:05 am)
Re: [PATCH 0/5] jbd: possible filesystem corruption fixes (t...
, Hidehiro Kawai
, (Tue Jun 3, 12:30 am)
[PATCH 5/5] ext3: abort ext3 if the journal has aborted
, Hidehiro Kawai
, (Mon Jun 2, 6:48 am)
Re: [PATCH 5/5] ext3: abort ext3 if the journal has aborted
, Jan Kara
, (Mon Jun 2, 8:49 am)
[PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Mon Jun 2, 6:47 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Jan Kara
, (Mon Jun 2, 8:44 am)
[PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Tue Jun 3, 12:40 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Jan Kara
, (Tue Jun 3, 4:02 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Mon Jun 23, 7:14 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Jan Kara
, (Mon Jun 23, 8:22 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Tue Jun 24, 7:52 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Jan Kara
, (Tue Jun 24, 9:33 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Fri Jun 27, 4:06 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Jan Kara
, (Fri Jun 27, 6:24 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Mon Jun 30, 1:09 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Jan Kara
, (Mon Jul 7, 6:07 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Tue Jun 3, 1:11 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Andrew Morton
, (Tue Jun 3, 1:20 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Tue Jun 3, 12:31 am)
[PATCH 3/5] jbd: abort when failed to log metadata buffers
, Hidehiro Kawai
, (Mon Jun 2, 6:46 am)
Re: [PATCH 3/5] jbd: abort when failed to log metadata buffers
, Andrew Morton
, (Tue Jun 3, 6:35 pm)
Re: [PATCH 3/5] jbd: abort when failed to log metadata buffers
, Hidehiro Kawai
, (Wed Jun 4, 6:57 am)
Re: [PATCH 3/5] jbd: abort when failed to log metadata buffers
, Jan Kara
, (Mon Jun 2, 8:00 am)
[PATCH 2/5] jbd: ordered data integrity fix
, Hidehiro Kawai
, (Mon Jun 2, 6:45 am)
Re: [PATCH 2/5] jbd: ordered data integrity fix
, Andrew Morton
, (Tue Jun 3, 6:33 pm)
Re: [PATCH 2/5] jbd: ordered data integrity fix
, Hidehiro Kawai
, (Wed Jun 4, 6:55 am)
Re: [PATCH 2/5] jbd: ordered data integrity fix
, Jan Kara
, (Mon Jun 2, 7:59 am)
[PATCH 1/5] jbd: strictly check for write errors on data buf...
, Hidehiro Kawai
, (Mon Jun 2, 6:43 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Andrew Morton
, (Tue Jun 3, 6:30 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Hidehiro Kawai
, (Wed Jun 4, 6:53 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Jan Kara
, (Wed Jun 4, 6:19 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Andrew Morton
, (Wed Jun 4, 2:19 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Andreas Dilger
, (Wed Jun 4, 5:58 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Theodore Tso
, (Wed Jun 4, 5:22 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Mike Snitzer
, (Wed Jun 4, 11:28 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Andrew Morton
, (Wed Jun 4, 5:58 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Theodore Tso
, (Wed Jun 4, 6:51 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Jan Kara
, (Thu Jun 5, 5:35 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Hidehiro Kawai
, (Thu Jun 5, 7:33 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Theodore Tso
, (Thu Jun 5, 10:29 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Andrew Morton
, (Thu Jun 5, 12:20 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Andreas Dilger
, (Thu Jun 5, 2:49 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Hidehiro Kawai
, (Mon Jun 9, 6:09 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Jan Kara
, (Wed Jun 11, 8:35 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on data...
, Hidehiro Kawai
, (Thu Jun 12, 9:19 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Willy Tarreau
Re: Linux 2.6.21
Jan Kundrát
kswapd high CPU usage with no swap
git
:
linux-netdev
:
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
David Miller
Re: [PATCH] tcp: splice as many packets as possible at once
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
490 guests
online.
Syndicate