aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid/aacraid.h
diff options
context:
space:
mode:
authorSalyzyn, Mark <Mark_Salyzyn@adaptec.com>2008-01-08 15:01:07 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-23 12:29:18 -0500
commit95e852e1ef165560e85d3012127068c8f08b19a1 (patch)
tree42963d0880b10f34c888ad55890b679ad8a5ccc2 /drivers/scsi/aacraid/aacraid.h
parent9b161a4d3e83518323ce13822e55de70c630aa65 (diff)
[SCSI] aacraid: add parameter to control FUA and SYNCHRONIZE_CACHE policy
aacraid.cache parameter, Disable Queue Flush commands: bit 0 - Disable FUA in WRITE SCSI commands bit 1 - Disable SYNCHRONIZE_CACHE SCSI command bit 2 - Disable only if Battery not protecting adapter supplied Cache e.g.: aacraid.cache=7 will disable the FUA and SYNCHRONIZE_CACHE commands if the adapter has reported that it's cache is battery backed up. This parameter permits experimentation with tradeoffs between performance and caching policy. Signed-off-by: Mark Salyzyn <aacraid@adaptec.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/aacraid/aacraid.h')
-rw-r--r--drivers/scsi/aacraid/aacraid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h
index 734623af9c45..7bb3d9fde713 100644
--- a/drivers/scsi/aacraid/aacraid.h
+++ b/drivers/scsi/aacraid/aacraid.h
@@ -1016,6 +1016,7 @@ struct aac_dev
1016 * lets break them out so we don't have to do an AND to check them 1016 * lets break them out so we don't have to do an AND to check them
1017 */ 1017 */
1018 u8 nondasd_support; 1018 u8 nondasd_support;
1019 u8 cache_protected;
1019 u8 dac_support; 1020 u8 dac_support;
1020 u8 raid_scsi_mode; 1021 u8 raid_scsi_mode;
1021 u8 comm_interface; 1022 u8 comm_interface;
@@ -1770,6 +1771,7 @@ extern struct aac_common aac_config;
1770#define AifEnConfigChange 3 /* Adapter configuration change */ 1771#define AifEnConfigChange 3 /* Adapter configuration change */
1771#define AifEnContainerChange 4 /* Container configuration change */ 1772#define AifEnContainerChange 4 /* Container configuration change */
1772#define AifEnDeviceFailure 5 /* SCSI device failed */ 1773#define AifEnDeviceFailure 5 /* SCSI device failed */
1774#define AifEnBatteryEvent 14 /* Change in Battery State */
1773#define AifEnAddContainer 15 /* A new array was created */ 1775#define AifEnAddContainer 15 /* A new array was created */
1774#define AifEnDeleteContainer 16 /* A container was deleted */ 1776#define AifEnDeleteContainer 16 /* A container was deleted */
1775#define AifEnExpEvent 23 /* Firmware Event Log */ 1777#define AifEnExpEvent 23 /* Firmware Event Log */