summaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_fsf.c
diff options
context:
space:
mode:
authorFUJITA Tomonori2007-07-29 09:46:28 +0200
committerJames Bottomley2007-07-31 17:29:04 +0200
commit7936a892e72498a05b9a7fb1fec6506d65c8e435 (patch)
treef7a398b4c224954e26ef59bec07b6df3c750a9c8 /drivers/s390/scsi/zfcp_fsf.c
parentMerge master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6.23 (diff)
downloadkernel-qcow2-linux-7936a892e72498a05b9a7fb1fec6506d65c8e435.tar.gz
kernel-qcow2-linux-7936a892e72498a05b9a7fb1fec6506d65c8e435.tar.xz
kernel-qcow2-linux-7936a892e72498a05b9a7fb1fec6506d65c8e435.zip
[SCSI] zfcp: 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. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.c')
-rw-r--r--drivers/s390/scsi/zfcp_fsf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index b240800b78d7..99299976e891 100644
--- a/drivers/s390/scsi/zfcp_fsf.c
+++ b/drivers/s390/scsi/zfcp_fsf.c
@@ -4154,8 +4154,9 @@ zfcp_fsf_send_fcp_command_task_handler(struct zfcp_fsf_req *fsf_req)
fcp_rsp_iu->fcp_resid,
(int) zfcp_get_fcp_dl(fcp_cmnd_iu));
- scpnt->resid = fcp_rsp_iu->fcp_resid;
- if (scpnt->request_bufflen - scpnt->resid < scpnt->underflow)
+ scsi_set_resid(scpnt, fcp_rsp_iu->fcp_resid);
+ if (scsi_bufflen(scpnt) - scsi_get_resid(scpnt) <
+ scpnt->underflow)
set_host_byte(&scpnt->result, DID_ERROR);
}