[SCSI] tgt: convert to use the data buffer accessors
- convert to use the new accessors for the sg lists and the parameters. 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
1237c98db2
commit
f10ab66fa5
@@ -112,7 +112,7 @@ int scsi_tgt_uspace_send_cmd(struct scsi_cmnd *cmd, u64 itn_id,
|
||||
memset(&ev, 0, sizeof(ev));
|
||||
ev.p.cmd_req.host_no = shost->host_no;
|
||||
ev.p.cmd_req.itn_id = itn_id;
|
||||
ev.p.cmd_req.data_len = cmd->request_bufflen;
|
||||
ev.p.cmd_req.data_len = scsi_bufflen(cmd);
|
||||
memcpy(ev.p.cmd_req.scb, cmd->cmnd, sizeof(ev.p.cmd_req.scb));
|
||||
memcpy(ev.p.cmd_req.lun, lun, sizeof(ev.p.cmd_req.lun));
|
||||
ev.p.cmd_req.attribute = cmd->tag;
|
||||
|
Reference in New Issue
Block a user