login
Login
/
Register
Search
Search this site:
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
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jan Kara
Subject:
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
Date: Tuesday, June 3, 2008 - 1: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, 3:40 am)
[PATCH 1/5] jbd: strictly check for write errors on data b ...
, Hidehiro Kawai
, (Mon Jun 2, 3:43 am)
[PATCH 2/5] jbd: ordered data integrity fix
, Hidehiro Kawai
, (Mon Jun 2, 3:45 am)
[PATCH 3/5] jbd: abort when failed to log metadata buffers
, Hidehiro Kawai
, (Mon Jun 2, 3:46 am)
[PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Mon Jun 2, 3:47 am)
[PATCH 5/5] ext3: abort ext3 if the journal has aborted
, Hidehiro Kawai
, (Mon Jun 2, 3:48 am)
Re: [PATCH 2/5] jbd: ordered data integrity fix
, Jan Kara
, (Mon Jun 2, 4:59 am)
Re: [PATCH 3/5] jbd: abort when failed to log metadata buffers
, Jan Kara
, (Mon Jun 2, 5:00 am)
Re: [PATCH 0/5] jbd: possible filesystem corruption fixes ...
, Jan Kara
, (Mon Jun 2, 5:05 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Jan Kara
, (Mon Jun 2, 5:44 am)
Re: [PATCH 5/5] ext3: abort ext3 if the journal has aborted
, Jan Kara
, (Mon Jun 2, 5:49 am)
Re: [PATCH 0/5] jbd: possible filesystem corruption fixes ...
, Hidehiro Kawai
, (Mon Jun 2, 9:30 pm)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Mon Jun 2, 9:31 pm)
[PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Mon Jun 2, 9:40 pm)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Mon Jun 2, 10:11 pm)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Andrew Morton
, (Mon Jun 2, 10:20 pm)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Jan Kara
, (Tue Jun 3, 1:02 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Andrew Morton
, (Tue Jun 3, 3:30 pm)
Re: [PATCH 2/5] jbd: ordered data integrity fix
, Andrew Morton
, (Tue Jun 3, 3:33 pm)
Re: [PATCH 3/5] jbd: abort when failed to log metadata buffers
, Andrew Morton
, (Tue Jun 3, 3:35 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Jan Kara
, (Wed Jun 4, 3:19 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Hidehiro Kawai
, (Wed Jun 4, 3:53 am)
Re: [PATCH 2/5] jbd: ordered data integrity fix
, Hidehiro Kawai
, (Wed Jun 4, 3:55 am)
Re: [PATCH 3/5] jbd: abort when failed to log metadata buffers
, Hidehiro Kawai
, (Wed Jun 4, 3:57 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Andrew Morton
, (Wed Jun 4, 11:19 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Theodore Tso
, (Wed Jun 4, 2:22 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Andreas Dilger
, (Wed Jun 4, 2:58 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Andrew Morton
, (Wed Jun 4, 2:58 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Theodore Tso
, (Wed Jun 4, 3:51 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Mike Snitzer
, (Wed Jun 4, 8:28 pm)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Jan Kara
, (Thu Jun 5, 2:35 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Hidehiro Kawai
, (Thu Jun 5, 4:33 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Theodore Tso
, (Thu Jun 5, 7:29 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Andrew Morton
, (Thu Jun 5, 9:20 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Andreas Dilger
, (Thu Jun 5, 11:49 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Hidehiro Kawai
, (Mon Jun 9, 3:09 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Jan Kara
, (Wed Jun 11, 5:35 am)
Re: [PATCH 1/5] jbd: strictly check for write errors on da ...
, Hidehiro Kawai
, (Thu Jun 12, 6:19 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Mon Jun 23, 4:14 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Jan Kara
, (Mon Jun 23, 5:22 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Tue Jun 24, 4:52 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Jan Kara
, (Tue Jun 24, 6:33 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Fri Jun 27, 1:06 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Jan Kara
, (Fri Jun 27, 3:24 am)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Hidehiro Kawai
, (Sun Jun 29, 10:09 pm)
Re: [PATCH 4/5] jbd: fix error handling for checkpoint io
, Jan Kara
, (Mon Jul 7, 3:07 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Linus Torvalds
Linux 2.6.34-rc4
David Miller
Re: 'global' rq->clock
Borislav Petkov
2.6.23-rc1: no setup signature found...
git
:
Len Brown
Re: fatal: unable to create '.git/index': File exists
Oliver Hoffmann
git init --bare versus git --bare init
Sam Vilain
Re: RFC: Flat directory for notes, or fan-out? Both!
Linus Torvalds
Re: git-diff should not fire up $PAGER, period!
Jonathan Nieder
Re: git-daemon serving repos with repo.git/git-daemon-export-ok
linux-netdev
:
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
William Allen Simpson
[net-next-2.6 PATCH v8 0/7] TCPCT part 1: cookie option exchange
Trond Myklebust
[PATCH] NET: Add the helper kernel_sock_shutdown()
Ron Mercer
[net-next PATCH 1/2] qlge: Add firmware info to ethtool get regs.
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
Gilles Chehade
Re: Longest Uptime?
git-commits-head
:
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
V4L/DVB: xc3028: fix regression in firmware loading time
Linux Kernel Mailing List
V4L/DVB (10826): cx88: Add IR support to pcHDTV HD3000 & HD5500
Linux Kernel Mailing List
korina: do not use IRQF_SHARED with IRQF_DISABLED
Colocation donated by:
Syndicate