]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: arcmsr: Send SYNCHRONIZE_CACHE command to firmware
authorChing Huang <ching2048@areca.com.tw>
Wed, 19 Oct 2016 09:50:26 +0000 (17:50 +0800)
committerJiri Slaby <jslaby@suse.cz>
Thu, 24 Nov 2016 15:23:31 +0000 (16:23 +0100)
commit0555f25e82355f900498a675023b79ef8a4ea666
tree71d5161e1e947719d17b9bc19d1224c4d13018f6
parentd5e042c16d27946818e5f79e1cec5f9779672703
scsi: arcmsr: Send SYNCHRONIZE_CACHE command to firmware

commit 2bf7dc8443e113844d078fd6541b7f4aa544f92f upstream.

The arcmsr driver failed to pass SYNCHRONIZE CACHE to controller
firmware. Depending on how drive caches are handled internally by
controller firmware this could potentially lead to data integrity
problems.

Ensure that cache flushes are passed to the controller.

[mkp: applied by hand and removed unused vars]

Signed-off-by: Ching Huang <ching2048@areca.com.tw>
Reported-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/scsi/arcmsr/arcmsr_hba.c