The patch titled scsi: megaraid_sas - return sync cache call with success has been added to the -mm tree. Its filename is scsi-megaraid_sas-return-sync-cache-call-with-success.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: scsi: megaraid_sas - return sync cache call with success From: Sumant Patro <sumantp@xxxxxxxx> 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@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/scsi/megaraid/megaraid_sas.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff -puN drivers/scsi/megaraid/megaraid_sas.c~scsi-megaraid_sas-return-sync-cache-call-with-success drivers/scsi/megaraid/megaraid_sas.c --- a/drivers/scsi/megaraid/megaraid_sas.c~scsi-megaraid_sas-return-sync-cache-call-with-success +++ a/drivers/scsi/megaraid/megaraid_sas.c @@ -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; _ Patches currently in -mm which might be from sumantp@xxxxxxxx are origin.patch scsi-megaraid_sas-donot-process-cmds-if-hw_crit_error-is-set.patch scsi-megaraid_sas-added-bios_param-in-scsi_host_template.patch scsi-megaraid_sas-throttle-io-if-fw-is-busy.patch scsi-megaraid_sas-replace-pci_alloc_consitent-with-dma_alloc_coherent-in-ioctl-path.patch scsi-megaraid_sas-return-sync-cache-call-with-success.patch scsi-megaraid_sas-update-version-and-author-info.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html