mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
[SCSI] megaraid_sas: return sync cache call with success
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> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
9f35fa8a14
commit
02b01e010a
1 changed files with 12 additions and 0 deletions
|
@ -856,6 +856,18 @@ megasas_queue_command(struct scsi_cmnd *scmd, void (*done) (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;
|
||||
}
|
||||
|
||||
cmd = megasas_get_cmd(instance);
|
||||
if (!cmd)
|
||||
return SCSI_MLQUEUE_HOST_BUSY;
|
||||
|
|
Loading…
Reference in a new issue