diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2007-05-26 01:08:20 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-29 19:32:12 -0400 |
commit | 5f7186c841a13abff0bf81ee93754b4f46e19141 (patch) | |
tree | 381d9c0564edd1319513e40d3886b53da6057ea8 /drivers/scsi/qla4xxx/ql4_isr.c | |
parent | 1928d73fac9a38be901dd5c9eb8b18b56ce9e18d (diff) |
[SCSI] qla4xxx: convert to use the data buffer accessors
- remove the unnecessary map_single path.
- convert to use the new accessors for the sg lists and the
parameters.
Jens Axboe <jens.axboe@oracle.com> did the for_each_sg cleanup.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: David C Somayajulu <david.somayajulu@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_isr.c')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_isr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_isr.c b/drivers/scsi/qla4xxx/ql4_isr.c index 946e22b1e4b8..b47bd85f114d 100644 --- a/drivers/scsi/qla4xxx/ql4_isr.c +++ b/drivers/scsi/qla4xxx/ql4_isr.c | |||
@@ -95,7 +95,7 @@ static void qla4xxx_status_entry(struct scsi_qla_host *ha, | |||
95 | 95 | ||
96 | if (sts_entry->iscsiFlags & | 96 | if (sts_entry->iscsiFlags & |
97 | (ISCSI_FLAG_RESIDUAL_OVER|ISCSI_FLAG_RESIDUAL_UNDER)) | 97 | (ISCSI_FLAG_RESIDUAL_OVER|ISCSI_FLAG_RESIDUAL_UNDER)) |
98 | cmd->resid = residual; | 98 | scsi_set_resid(cmd, residual); |
99 | 99 | ||
100 | cmd->result = DID_OK << 16 | scsi_status; | 100 | cmd->result = DID_OK << 16 | scsi_status; |
101 | 101 | ||
@@ -179,14 +179,14 @@ static void qla4xxx_status_entry(struct scsi_qla_host *ha, | |||
179 | * Firmware detected a SCSI transport underrun | 179 | * Firmware detected a SCSI transport underrun |
180 | * condition | 180 | * condition |
181 | */ | 181 | */ |
182 | cmd->resid = residual; | 182 | scsi_set_resid(cmd, residual); |
183 | DEBUG2(printk("scsi%ld:%d:%d:%d: %s: UNDERRUN status " | 183 | DEBUG2(printk("scsi%ld:%d:%d:%d: %s: UNDERRUN status " |
184 | "detected, xferlen = 0x%x, residual = " | 184 | "detected, xferlen = 0x%x, residual = " |
185 | "0x%x\n", | 185 | "0x%x\n", |
186 | ha->host_no, cmd->device->channel, | 186 | ha->host_no, cmd->device->channel, |
187 | cmd->device->id, | 187 | cmd->device->id, |
188 | cmd->device->lun, __func__, | 188 | cmd->device->lun, __func__, |
189 | cmd->request_bufflen, | 189 | scsi_bufflen(cmd), |
190 | residual)); | 190 | residual)); |
191 | } | 191 | } |
192 | 192 | ||
@@ -230,7 +230,7 @@ static void qla4xxx_status_entry(struct scsi_qla_host *ha, | |||
230 | if ((sts_entry->iscsiFlags & | 230 | if ((sts_entry->iscsiFlags & |
231 | ISCSI_FLAG_RESIDUAL_UNDER) == 0) { | 231 | ISCSI_FLAG_RESIDUAL_UNDER) == 0) { |
232 | cmd->result = DID_BUS_BUSY << 16; | 232 | cmd->result = DID_BUS_BUSY << 16; |
233 | } else if ((cmd->request_bufflen - residual) < | 233 | } else if ((scsi_bufflen(cmd) - residual) < |
234 | cmd->underflow) { | 234 | cmd->underflow) { |
235 | /* | 235 | /* |
236 | * Handle mid-layer underflow??? | 236 | * Handle mid-layer underflow??? |
@@ -251,7 +251,7 @@ static void qla4xxx_status_entry(struct scsi_qla_host *ha, | |||
251 | cmd->device->channel, | 251 | cmd->device->channel, |
252 | cmd->device->id, | 252 | cmd->device->id, |
253 | cmd->device->lun, __func__, | 253 | cmd->device->lun, __func__, |
254 | cmd->request_bufflen, residual)); | 254 | scsi_bufflen(cmd), residual)); |
255 | 255 | ||
256 | cmd->result = DID_ERROR << 16; | 256 | cmd->result = DID_ERROR << 16; |
257 | } else { | 257 | } else { |