lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 14 Feb 2007 13:00:55 -0800
From:	Sumant Patro <sumantp@...l.com>
To:	James.Bottomley@...elEye.com, akpm@...l.org
Cc:	linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
	neela.kolli@....com, bo.yang@....com, sumant.patro@....com
Subject: [PATCH 5/6] 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@....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;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ