libata: Setup nbytes in ata_sg_init_one
PATCH 1/6 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 <[email protected]>
---
libata-dev-bjking1/drivers/scsi/libata-core.c | 1 + 1 files changed, 1 insertion(+)
drivers/scsi/libata-core.c renamed from drivers/scsi/libata-core.c~libata_setup_nbytes +1 -0
@@ -3321,6 +3321,7 @@ void ata_sg_init_one(struct ata_queued_c 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);
_
Jeff Garzik
Appliedapplied to #upstream