]> 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)
commita8901d7611b9fb5e13a94aa59055dfe483d100b3
tree91514ed290d2edc038ddad61dfde927ee6f3e6b2
parentb41bd33b198a6ef7a8587ce5ff4a5db57068fa86
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