linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* journal forget may introduce buffer aliasing problem?
@ 2010-01-27  3:44 丁定华
  2010-01-27  5:58 ` 丁定华
  0 siblings, 1 reply; 2+ messages in thread
From: 丁定华 @ 2010-01-27  3:44 UTC (permalink / raw)
  To: linux-ext4; +Cc: Jan Kara

Hi all:
       The following is my analysis(if wrong, please point it out),
may be I can send a patch out if it's a bug.
       If buffer_head belongs to comitting transaction,
jbd2_journal_forget do nothing except discard it from running
transaction. So this buffer will happily be inserted
into committing_transaction's checkpoint list and do write-back work,
then this buffer may be re-used as data-block, then there are two
buffer_heads maps to the same block, buffer aliasing occurs, and we
can't control the writeback order of the two buffer heads, fs may be
inconsistent.
      The same thing will happen if buffer_head doesn't belongs to
running or committing transaction, but lays in checkpoint list.

-- 
丁定华
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-27  5:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-27  3:44 journal forget may introduce buffer aliasing problem? 丁定华
2010-01-27  5:58 ` 丁定华

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).