]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 6 Dec 2016 16:51:57 +0000 (16:51 +0000)
commita6b4f75ace925daeb2fca30b90bbb1fe01cb50ed
treecded80e0b03219e25a32bced239a3010ccf3491b
parent24b0f47f08ac87a38f2f10f8527b4dfbd41da037
scsi: arcmsr: Send SYNCHRONIZE_CACHE command to firmware

BugLink: http://bugs.launchpad.net/bugs/1642572
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/scsi/arcmsr/arcmsr_hba.c