Skip to content

Commit

Permalink
[PATCH] libata: Setup nbytes in ata_sg_init_one
Browse files Browse the repository at this point in the history
Setup nbytes in ata_sg_init_one to the total transfer length
of the command. This is needed by some HBAs that need to know
the total transfer length of each command.

Signed-off-by: Brian King <brking@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Brian King authored and Jeff Garzik committed Jun 12, 2006
1 parent bd5d825 commit 233277c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3287,6 +3287,7 @@ void ata_sg_init_one(struct ata_queued_cmd *qc, void *buf, unsigned int buflen)
qc->n_elem = 1;
qc->orig_n_elem = 1;
qc->buf_virt = buf;
qc->nbytes = buflen;

sg = qc->__sg;
sg_init_one(sg, buf, buflen);
Expand Down

0 comments on commit 233277c

Please sign in to comment.