HAMMER: Mass storage flush command support
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 29 Aug 2008 20:19:08 +0000 (20:19 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 29 Aug 2008 20:19:08 +0000 (20:19 +0000)
commit748efb599fd7d91238bc7062a114aa8841f07444
treeeeec4dd5a8f27a73debc4541b0f8883f446018c2
parenta9bf1b8cd2321d076245346ebea103f2b5e28337
HAMMER: Mass storage flush command support

Add mass storage flush command support to HAMMER.  The HAMMER flush cycle
issues async I/O in parallel and waits for it to complete before moving
onto the next stage.  This occurs in two places.  The new flush command
is issued after the async I/O, and then we wait on everything.

Due to HAMMER's ability to gang writes asynchronously between stages the
addition of the flush should not significantly impact performance.
sys/vfs/hammer/hammer.h
sys/vfs/hammer/hammer_disk.h
sys/vfs/hammer/hammer_io.c
sys/vfs/hammer/hammer_ondisk.c