diff options
author | Vaughan Cao <vaughan.cao@oracle.com> | 2014-06-03 17:37:30 +0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-07-17 22:07:31 +0200 |
commit | cb2fb68d064c16a559483651132815cc378fd1f9 (patch) | |
tree | be186c470b27cfa9af56d464423cb3655bdacf1a /virt/kvm | |
parent | 6bb5e6e772f5f71413e290eb9c6a475e9a6d39e2 (diff) | |
download | linux-cb2fb68d064c16a559483651132815cc378fd1f9.tar.gz linux-cb2fb68d064c16a559483651132815cc378fd1f9.tar.bz2 linux-cb2fb68d064c16a559483651132815cc378fd1f9.zip |
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 <vaughan.cao@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions