]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 27 Oct 2016 02:17:43 +0000 (22:17 -0400)
commit2bf7dc8443e113844d078fd6541b7f4aa544f92f
tree91514ed290d2edc038ddad61dfde927ee6f3e6b2
parent4d2b496f19f3c2cfaca1e8fa0710688b5ff3811d
scsi: arcmsr: Send SYNCHRONIZE_CACHE command to firmware

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]

Cc: <stable@vger.kernel.org>
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>
drivers/scsi/arcmsr/arcmsr_hba.c