aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid/commsup.c
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/commsup.c
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/commsup.c')
-rw-r--r--drivers/scsi/aacraid/commsup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c
index 53d415e812ee..81cdac166d4b 100644
--- a/drivers/scsi/aacraid/commsup.c
+++ b/drivers/scsi/aacraid/commsup.c
@@ -849,6 +849,10 @@ static void aac_handle_aif(struct aac_dev * dev, struct fib * fibptr)
849 849
850 case AifCmdEventNotify: 850 case AifCmdEventNotify:
851 switch (le32_to_cpu(((__le32 *)aifcmd->data)[0])) { 851 switch (le32_to_cpu(((__le32 *)aifcmd->data)[0])) {
852 case AifEnBatteryEvent:
853 dev->cache_protected =
854 (((__le32 *)aifcmd->data)[1] == cpu_to_le32(3));
855 break;
852 /* 856 /*
853 * Add an Array. 857 * Add an Array.
854 */ 858 */