Skip to content
Commit cb2fb68d authored by Vaughan Cao's avatar Vaughan Cao Committed by Christoph Hellwig
Browse files

sd: notify block layer when using temporary change to cache_type

This is a fix for commit 39c60a09



  "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: default avatarVaughan Cao <vaughan.cao@oracle.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 6bb5e6e7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment