[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>
This commit is contained in:
committed by
James Bottomley
parent
a528ab7a32
commit
f4f4e47e4a
@@ -216,7 +216,7 @@ static void scsi_unlock_floptical(struct scsi_device *sdev,
|
||||
scsi_cmd[4] = 0x2a; /* size */
|
||||
scsi_cmd[5] = 0;
|
||||
scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL,
|
||||
SCSI_TIMEOUT, 3);
|
||||
SCSI_TIMEOUT, 3, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -581,7 +581,8 @@ static int scsi_probe_lun(struct scsi_device *sdev, unsigned char *inq_result,
|
||||
|
||||
result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE,
|
||||
inq_result, try_inquiry_len, &sshdr,
|
||||
HZ / 2 + HZ * scsi_inq_timeout, 3);
|
||||
HZ / 2 + HZ * scsi_inq_timeout, 3,
|
||||
NULL);
|
||||
|
||||
SCSI_LOG_SCAN_BUS(3, printk(KERN_INFO "scsi scan: INQUIRY %s "
|
||||
"with code 0x%x\n",
|
||||
@@ -1390,7 +1391,7 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags,
|
||||
|
||||
result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE,
|
||||
lun_data, length, &sshdr,
|
||||
SCSI_TIMEOUT + 4 * HZ, 3);
|
||||
SCSI_TIMEOUT + 4 * HZ, 3, NULL);
|
||||
|
||||
SCSI_LOG_SCAN_BUS(3, printk (KERN_INFO "scsi scan: REPORT LUNS"
|
||||
" %s (try %d) result 0x%x\n", result
|
||||
|
Reference in New Issue
Block a user