login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
2
Re: [PATCH 2/5] jbd: ordered data integrity fix
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@...>, <jack@...>, <jbacik@...>, <cmm@...>, <tytso@...>, sugita <yumiko.sugita.yf@...>, Satoshi OSHIMA <satoshi.oshima.fk@...>
Subject:
Re: [PATCH 2/5] jbd: ordered data integrity fix
Date: Monday, June 2, 2008 - 7:59 am
On Mon 02-06-08 19:45:04, Hidehiro Kawai wrote:
quoted text
> Subject: [PATCH 2/5] jbd: ordered data integrity fix > > In ordered mode, if a buffer being dirtied exists in the committing > transaction, we write the buffer to the disk, move it from the > committing transaction to the running transaction, then dirty it. > But we don't have to remove the buffer from the committing > transaction when the buffer couldn't be written out, otherwise it > would miss the error and the committing transaction would not abort. > > This patch adds an error check before removing the buffer from the > committing transaction. > > Signed-off-by: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
You can add Acked-by: Jan Kara <jack@suse.cz> Honza
quoted text
> --- > fs/jbd/transaction.c | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) > > Index: linux-2.6.26-rc4/fs/jbd/transaction.c > =================================================================== > --- linux-2.6.26-rc4.orig/fs/jbd/transaction.c > +++ linux-2.6.26-rc4/fs/jbd/transaction.c > @@ -954,9 +954,10 @@ int journal_dirty_data(handle_t *handle, > journal_t *journal = handle->h_transaction->t_journal; > int need_brelse = 0; > struct journal_head *jh; > + int ret = 0; > > if (is_handle_aborted(handle)) > - return 0; > + return ret; > > jh = journal_add_journal_head(bh); > JBUFFER_TRACE(jh, "entry"); > @@ -1067,7 +1068,16 @@ int journal_dirty_data(handle_t *handle, > time if it is redirtied */ > } > > - /* journal_clean_data_list() may have got there first */ > + /* > + * We cannot remove the buffer with io error from the > + * committing transaction, because otherwise it would > + * miss the error and the commit would not abort. > + */ > + if (unlikely(!buffer_uptodate(bh))) { > + ret = -EIO; > + goto no_journal; > + } > + > if (jh->b_transaction != NULL) { > JBUFFER_TRACE(jh, "unfile from commit"); > __journal_temp_unlink_buffer(jh); > @@ -1108,7 +1118,7 @@ no_journal: > } > JBUFFER_TRACE(jh, "exit"); > journal_put_journal_head(jh); > - return 0; > + return ret; > } > > /** > >
-- 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
:
Andrew Morton
-mm merge plans for 2.6.23
David Miller
Re: [BUG] New Kernel Bugs
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Andrew Morton
Re: Linux 2.6.21-rc4
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Eric W. Biederman
[PATCH] macvlan: Support creating macvlans from macvlans
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
745 guests
online.
Online users
sathya_tce1
swatbolish
ijango123
Syndicate