Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173560
b: refs/heads/master
c: 8d56825
h: refs/heads/master
v: v3
  • Loading branch information
Yang, Bo authored and James Bottomley committed Oct 29, 2009
1 parent cfd6149 commit 9c253df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 153f251e477f41dab0314c4cd2004b9e7ebac4eb
refs/heads/master: 8d56825321339f0ef7ad08eb58332e1836881e3b
11 changes: 11 additions & 0 deletions trunk/drivers/scsi/megaraid/megaraid_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,17 @@ megasas_build_dcdb(struct megasas_instance *instance, struct scsi_cmnd *scp,

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
*/
Expand Down

0 comments on commit 9c253df

Please sign in to comment.