From: Vaughan Cao Date: Tue, 3 Jun 2014 09:37:30 +0000 (+0800) Subject: sd: notify block layer when using temporary change to cache_type X-Git-Tag: omap-for-v3.17/fixes-against-rc2~143^2~129 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb2fb68d064c16a559483651132815cc378fd1f9;p=pandora-kernel.git sd: notify block layer when using temporary change to cache_type 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 a temporary change of the cache_type to write through. Without this, a 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 Reviewed-by: Christoph Hellwig Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed