diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-12-04 00:24:39 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-12-29 12:24:24 -0500 |
commit | f4f4e47e4af6b02dd1c425b931c65d0165356e33 (patch) | |
tree | 1bca97ce56703d7a101674cf6bf0d28576cf7201 /drivers/scsi/scsi_scan.c | |
parent | a528ab7a324f1dbb3598ae0ecd238ab7dd974294 (diff) |
[SCSI] add residual argument to scsi_execute and scsi_execute_req
scsi_execute() and scsi_execute_req() discard the residual length
information. Some callers need it. This adds residual argument
(optional) to scsi_execute and scsi_execute_req.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
-rw-r--r-- | drivers/scsi/scsi_scan.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index b14dc02c3ded..6963d529e0f0 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c | |||
@@ -216,7 +216,7 @@ static void scsi_unlock_floptical(struct scsi_device *sdev, | |||
216 | scsi_cmd[4] = 0x2a; /* size */ | 216 | scsi_cmd[4] = 0x2a; /* size */ |
217 | scsi_cmd[5] = 0; | 217 | scsi_cmd[5] = 0; |
218 | scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL, | 218 | scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL, |
219 | SCSI_TIMEOUT, 3); | 219 | SCSI_TIMEOUT, 3, NULL); |
220 | } | 220 | } |
221 | 221 | ||
222 | /** | 222 | /** |
@@ -581,7 +581,8 @@ static int scsi_probe_lun(struct scsi_device *sdev, unsigned char *inq_result, | |||
581 | 581 | ||
582 | result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, | 582 | result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, |
583 | inq_result, try_inquiry_len, &sshdr, | 583 | inq_result, try_inquiry_len, &sshdr, |
584 | HZ / 2 + HZ * scsi_inq_timeout, 3); | 584 | HZ / 2 + HZ * scsi_inq_timeout, 3, |
585 | NULL); | ||
585 | 586 | ||
586 | SCSI_LOG_SCAN_BUS(3, printk(KERN_INFO "scsi scan: INQUIRY %s " | 587 | SCSI_LOG_SCAN_BUS(3, printk(KERN_INFO "scsi scan: INQUIRY %s " |
587 | "with code 0x%x\n", | 588 | "with code 0x%x\n", |
@@ -1390,7 +1391,7 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags, | |||
1390 | 1391 | ||
1391 | result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, | 1392 | result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, |
1392 | lun_data, length, &sshdr, | 1393 | lun_data, length, &sshdr, |
1393 | SCSI_TIMEOUT + 4 * HZ, 3); | 1394 | SCSI_TIMEOUT + 4 * HZ, 3, NULL); |
1394 | 1395 | ||
1395 | SCSI_LOG_SCAN_BUS(3, printk (KERN_INFO "scsi scan: REPORT LUNS" | 1396 | SCSI_LOG_SCAN_BUS(3, printk (KERN_INFO "scsi scan: REPORT LUNS" |
1396 | " %s (try %d) result 0x%x\n", result | 1397 | " %s (try %d) result 0x%x\n", result |