diff options
author | Brian King <brking@us.ibm.com> | 2006-06-07 12:25:31 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-06-11 23:24:25 -0400 |
commit | 233277cad6dacca6a8e53743641cf43ef7f37c4a (patch) | |
tree | 06cc72070888f7ec35f3ffb3144b9f3f35eaac24 /drivers | |
parent | bd5d825c9434b83925a88bd30eb9eef51908a3c9 (diff) |
[PATCH] libata: Setup nbytes in ata_sg_init_one
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 3f1aa77621fd..76b633a2f304 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -3287,6 +3287,7 @@ void ata_sg_init_one(struct ata_queued_cmd *qc, void *buf, unsigned int buflen) | |||
3287 | qc->n_elem = 1; | 3287 | qc->n_elem = 1; |
3288 | qc->orig_n_elem = 1; | 3288 | qc->orig_n_elem = 1; |
3289 | qc->buf_virt = buf; | 3289 | qc->buf_virt = buf; |
3290 | qc->nbytes = buflen; | ||
3290 | 3291 | ||
3291 | sg = qc->__sg; | 3292 | sg = qc->__sg; |
3292 | sg_init_one(sg, buf, buflen); | 3293 | sg_init_one(sg, buf, buflen); |