2003-05-22 15:14:05

by Stephen C. Tweedie

[permalink] [raw]
Subject: [RFC 2.4] mmap+IO potential dangling IO in ext3

--- linux-2.4-ext3merge/fs/jbd/commit.c.=K0000=.orig
+++ linux-2.4-ext3merge/fs/jbd/commit.c
@@ -272,6 +272,11 @@ sync_datalist_empty:
*/
while ((jh = commit_transaction->t_async_datalist)) {
struct buffer_head *bh = jh2bh(jh);
+ if (__buffer_state(bh, Freed)) {
+ BUFFER_TRACE(bh, "Cleaning freed buffer");
+ clear_bit(BH_Freed, &bh->b_state);
+ clear_bit(BH_Dirty, &bh->b_state);
+ }
if (buffer_locked(bh)) {
spin_unlock(&journal_datalist_lock);
unlock_journal(journal);


Attachments:
4201-ext3-freed-async.patch (500.00 B)