JFS: Improve sync barrier processing
authorDave Kleikamp <shaggy@austin.ibm.com>
Wed, 27 Jul 2005 14:17:57 +0000 (09:17 -0500)
committerDave Kleikamp <shaggy@austin.ibm.com>
Wed, 27 Jul 2005 14:17:57 +0000 (09:17 -0500)
commitcbc3d65ebcb0c494183d45cf202a53352cbf3871
tree4f05bef55fd76ddd7668187e84e7fbc16a4849f6
parentde8fd087b280797977b012a4275ee53ff2999f3f
JFS: Improve sync barrier processing

Under heavy load, hot metadata pages are often locked by non-committed
transactions, making them difficult to flush to disk.  This prevents
the sync point from advancing past a transaction that had modified the
page.

There is a point during the sync barrier processing where all
outstanding transactions have been committed to disk, but no new
transaction have been allowed to proceed.  This is the best time
to write the metadata.

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
fs/jfs/jfs_logmgr.c
fs/jfs/jfs_logmgr.h
fs/jfs/jfs_txnmgr.c
fs/jfs/super.c