]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
raid5-cache: simplify state machine when caches flushes are not needed
authorChristoph Hellwig <hch@lst.de>
Mon, 5 Oct 2015 07:31:09 +0000 (09:31 +0200)
committerNeilBrown <neilb@suse.com>
Sun, 1 Nov 2015 02:48:28 +0000 (13:48 +1100)
commit56fef7c6e02493dce316de99a11e9e26b852218b
tree947aafd77670967d989849453b1d2c24d96dbfdf
parentd8858f4321b744ff02e286165b643e8dc0ef1cf5
raid5-cache: simplify state machine when caches flushes are not needed

For devices without a volatile write cache we don't need to send a FLUSH
command to ensure writes are stable on disk, and thus can avoid the whole
step of batching up bios for processing by the MD thread.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/raid5-cache.c