On Tue, Jun 03, 2014 at 05:37:30PM +0800, Vaughan Cao wrote: > This is a fix for commit: > 39c60a0948cc06139e2fbfe084f83cb7e7deae3b sd: fix array cache flushing bug causing performance problems > We must notify the block layer via q->flush_flags after temporary change the cache_type to write through. > If not, SYNCHRONIZE CACHE command will still be generated. > This patch factors out a helper that can be called from sd_revalidate_disk and cache_type_store. > > Signed-off-by: Vaughan Cao <vaughan.cao@xxxxxxxxxx> Looks good, Reviewed-by: Christoph Hellwig <hch@xxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html