linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/12] scsi: megaraid_sas - tape drive support fix
@ 2009-09-21  2:21 Yang, Bo
  2009-09-21  3:40 ` Daniel Walker
  2009-10-06 20:12 ` Yang, Bo
  0 siblings, 2 replies; 37+ messages in thread
From: Yang, Bo @ 2009-09-21  2:21 UTC (permalink / raw)
  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

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<bo.yang@lsi.com>

---
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-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2010-08-05 20:38 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-21  2:21 [PATCH 1/12] scsi: megaraid_sas - tape drive support fix Yang, Bo
2009-09-21  3:40 ` Daniel Walker
2009-09-21 15:22   ` Yang, Bo
2009-09-21 15:57     ` Daniel Walker
2009-09-21 16:04       ` Yang, Bo
2009-10-06 20:12 ` Yang, Bo
2009-12-06 15:24   ` [PATCH 1/4] scsi: megaraid_sas - Zero pad_0 in mfi structure Yang, Bo
2009-12-06 15:30     ` [PATCH 2/4] scsi: megaraid_sas - add the ld list to driver Yang, Bo
2009-12-06 15:39       ` [PATCH 3/4] scsi: megaraid_sas - driver fixed the device update issue Yang, Bo
2009-12-06 15:42       ` [PATCH 4/4] scsi: megaraid_sas - version and documentation update Yang, Bo
     [not found]   ` <3A916D859199814BBB666188F96EB165013979165E@cosmail02.lsi.com>
2010-05-06 14:42     ` [PATCH 1/7] scsi: megaraid_sas - Online controller Reset Support (OCR) PART-I Yang, Bo
2010-05-06 15:41       ` [PATCH 2/7] scsi: megaraid_sas - Online controller Reset Support (OCR) PART-II Yang, Bo
2010-05-26 16:35         ` [PATCH 2/7] scsi: megaraid_sas - Online controller Reset Support (OCR)-II : Driver return RESET in timeout routine Yang, Bo
2010-06-10  3:25           ` [PATCH 4/12] scsi: megaraid_sas - Online controller Reset Support (OCR) " Yang, Bo
2010-08-05 20:16             ` Yang, Bo
2010-05-06 15:52       ` [PATCH 3/7] scsi: megaraid_sas - Online COntroller Reset (OCR) PART-III Yang, Bo
2010-05-07 12:54         ` Tomas Henzl
2010-05-18 20:58           ` Yang, Bo
2010-05-06 16:04       ` [PATCH 4/7] scsi: megaraid_sas - support devices update flag Yang, Bo
2010-06-10  4:16         ` [PATCH 9/12] " Yang, Bo
2010-06-18 21:05           ` Yang, Bo
2010-08-05 20:28             ` Yang, Bo
2010-05-06 16:17       ` [PATCH 5/7] scsi: megaraid_sas - Add input parameter for max_sectors Yang, Bo
2010-05-06 16:34       ` [PATCH 6/7] scsi: megaraid_sas - Add three times Online controller reset Yang, Bo
2010-05-25 16:17         ` [PATCH 6/7] scsi: megaraid_sas - Add three times Online controller reset - V2 Tomas Henzl
2010-05-25 17:32           ` James Bottomley
2010-05-26 15:48             ` Tomas Henzl
2010-05-26 21:08               ` Yang, Bo
2010-05-28 13:31                 ` Tomas Henzl
2010-06-10  4:21         ` [PATCH 11/12] scsi: megaraid_sas - Add three times Online controller reset Yang, Bo
2010-06-18 21:11           ` Yang, Bo
2010-08-05 20:35             ` Yang, Bo
2010-05-06 16:37       ` [PATCH 7/7] scsi: megaraid_sas - Version and documentation update Yang, Bo
2010-06-10  4:22         ` [PATCH 12/12] " Yang, Bo
2010-06-18 21:13           ` Yang, Bo
2010-08-05 20:38             ` Yang, Bo
2010-05-26 16:25       ` [PATCH 1/7] scsi: megaraid_sas - Online Controller Reset - I: Change the Chips related functions and Add the Chip reset functions Yang, Bo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).