Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964829AbXBOCK3 (ORCPT ); Wed, 14 Feb 2007 21:10:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964831AbXBOCK3 (ORCPT ); Wed, 14 Feb 2007 21:10:29 -0500 Received: from mail0.lsil.com ([147.145.40.20]:48825 "EHLO mail0.lsil.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964829AbXBOCK2 (ORCPT ); Wed, 14 Feb 2007 21:10:28 -0500 Subject: [PATCH 5/6] scsi: megaraid_sas - return sync cache call with success From: Sumant Patro To: James.Bottomley@SteelEye.com, akpm@osdl.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, neela.kolli@lsi.com, bo.yang@lsi.com, sumant.patro@lsi.com Content-Type: text/plain Date: Wed, 14 Feb 2007 13:00:55 -0800 Message-Id: <1171486855.4188.33.camel@dumbo> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-22) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1266 Lines: 39 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 --- 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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/