I've changed the write barrier code around a little so the block layer
isn't forced to fail barrier requests the queue can't handle.
This makes it much easier to add support for ide writeback
flushing to things like ext3 and lvm, where I want to make
the minimal possible changes to make things safe.
The full patch is at:
There might be additional spots in ext3 where ordering needs to be
enforced, I've included the ext3 code below in hopes of getting
The only other change was to make reiserfs use the IDE flushing mode
by default. It falls back to non-ordered calls on scsi.
--- linus.23/fs/jbd/commit.c Mon, 28 Jan 2002 09:51:50 -0500
struct buffer_head *bh = jh2bh(descriptor);
bh->b_end_io = journal_end_buffer_io_sync;
+ /* if we're on an ide device, setting BH_Ordered_Flush
+ will force a write cache flush before and after the
+ commit block. Otherwise, it'll do nothing. */
+ set_bit(BH_Ordered_Flush, &bh->b_state);
+ clear_bit(BH_Ordered_Flush, &bh->b_state);
put_bh(bh); /* One for getblk() */
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/