Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754235AbZIUCVl (ORCPT ); Sun, 20 Sep 2009 22:21:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753951AbZIUCVj (ORCPT ); Sun, 20 Sep 2009 22:21:39 -0400 Received: from na3sys009aog102.obsmtp.com ([74.125.149.69]:52839 "EHLO na3sys009aog102.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753257AbZIUCVi convert rfc822-to-8bit (ORCPT ); Sun, 20 Sep 2009 22:21:38 -0400 X-Greylist: delayed 647 seconds by postgrey-1.27 at vger.kernel.org; Sun, 20 Sep 2009 22:21:35 EDT From: "Yang, Bo" To: "Yang, Bo" , "James.Bottomley@HansenPartnership.com" , "James.Bottomley@suse.de" CC: "linux-scsi@vger.kernel.org" , "akpm@osdl.org" , "linux-kernel@vger.kernel.org" Date: Sun, 20 Sep 2009 20:21:19 -0600 Subject: [PATCH 1/12] scsi: megaraid_sas - tape drive support fix Thread-Topic: [PATCH 1/12] scsi: megaraid_sas - tape drive support fix Thread-Index: Aco28IhK0BCwqEkwToSTDcG+BIA9kwDb1hagAACJvwA= Message-ID: <4B6A08C587958942AA3002690DD4F8C35C5123FA@cosmail02.lsi.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1426 Lines: 35 Add the Tape drive fix to the megaraid_sas driver: If the command is for the tape device, set the FW pthru timeout to the os layer timeout value. Signed-off-by Bo Yang --- drivers/scsi/megaraid/megaraid_sas.c |?? 11 +++++++++++ ?1 file changed, 11 insertions(+) diff -rupN linux-2.6.28_orig/drivers/scsi/megaraid/megaraid_sas.c linux-2.6.28_new/drivers/scsi/megaraid/megaraid_sas.c --- linux-2.6.28_orig/drivers/scsi/megaraid/megaraid_sas.c????? 2009-05-04 20:06:29.000000000 -0400 +++ linux-2.6.28_new/drivers/scsi/megaraid/megaraid_sas.c?????? 2009-05-04 20:08:26.000000000 -0400 @@ -687,6 +687,17 @@ megasas_build_dcdb(struct megasas_instan ??????? memcpy(pthru->cdb, scp->cmnd, scp->cmd_len); ??????? /* +?????? * If the command is for the tape device, set the +????? ?* pthru timeout to the os layer timeout value. +?????? */ +?????? if (scp->device->type == TYPE_TAPE) { +?????????????? if ((scp->request->timeout / HZ) > 0xFFFF) +?????????????????????? pthru->timeout = 0xFFFF; +?????????????? else +?????????????????????? pthru->timeout = scp->request->timeout / HZ; +?????? } + +?????? /* ???????? * Construct SGL ???????? */ ??????? if (IS_DMA64) { -- 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/