]> git.baikalelectronics.ru Git - kernel.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)
commitf3bca524a154ae4d45a16d0d396a187019afd189
tree91514ed290d2edc038ddad61dfde927ee6f3e6b2
parent9fae0593f2f3b6820ed57844f731b9a553dd2a22
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