LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 5/6] scsi: megaraid_sas - return sync cache call with success
@ 2007-02-14 21:00 Sumant Patro
0 siblings, 0 replies; only message in thread
From: Sumant Patro @ 2007-02-14 21:00 UTC (permalink / raw)
To: James.Bottomley, akpm
Cc: linux-scsi, linux-kernel, neela.kolli, bo.yang, sumant.patro
FW does not support SYNCHRONIZE_CACHE cmd. FW flush cache on its own.
So, we just return success from the megasas_queue_command.
Signed-off-by: Sumant Patro <sumant.patro@lsi.com>
---
drivers/scsi/megaraid/megaraid_sas.c | 12 ++++++++++++
1 files changed, 12 insertions(+)
diff -uprN linux-feb13-new-p4/drivers/scsi/megaraid/megaraid_sas.c linux-feb13-new-p5/drivers/scsi/megaraid/megaraid_sas.c
--- linux-feb13-new-p4/drivers/scsi/megaraid/megaraid_sas.c 2007-02-14 04:34:31.000000000 -0800
+++ linux-feb13-new-p5/drivers/scsi/megaraid/megaraid_sas.c 2007-02-14 05:19:30.000000000 -0800
@@ -857,6 +857,18 @@ megasas_queue_command(struct scsi_cmnd *
goto out_done;
}
+ switch (scmd->cmnd[0]) {
+ case SYNCHRONIZE_CACHE:
+ /*
+ * FW takes care of flush cache on its own
+ * No need to send it down
+ */
+ scmd->result = DID_OK << 16;
+ goto out_done;
+ default:
+ break;
+ }
+
/* Check if we can accept cmds */
if (instance->is_busy) {
sec = (jiffies - instance->last_time) / HZ;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-15 2:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-14 21:00 [PATCH 5/6] scsi: megaraid_sas - return sync cache call with success Sumant Patro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).