Re: [PATCH] write barriers for 2.4.x

From: Chris Mason (mason@suse.com)
Date: Thu Feb 14 2002 - 19:56:52 EST


Hello everyone,

Here's the full patch update. The aic7xxx code is changed to make
sure we only try to use tag commands when they are turned on for the
target, otherwise we can safely assume the drive won't do
other writes first.

The buslogic and sym53c8xx_2 code is included, and the reiserfs
code is updated to queue the commit block immediately after
the last log block when barrier mode is enabled. It wasn't
happening soon enough with the first patch, and the drive wasn't
getting the chance to flush the commit as a unit.

reiserfs was also changed back to waiting on the buffers. benchmarks
don't show dropping the waits actually made any speed difference, the
really critical wait that was hurting us was:

write X log blocks
wait
write 1 commit block
wait

With -o barrier, this is now:

write X log blocks
write 1 commit block
wait.

For scsi, the new code is about 10% faster on journal heavy stuff,
but you've really gotta hammer on the log to see it.

Patch is attached and against 2.4.18-pre9 (rc1 should be fine)

-chris



-
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/



This archive was generated by hypermail 2b29 : Fri Feb 15 2002 - 21:01:05 EST