* [PATCH 1/6] libata: Setup nbytes in ata_sg_init_one
@ 2006-06-07 16:25 Brian King
2006-06-12 3:24 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Brian King @ 2006-06-07 16:25 UTC (permalink / raw)
To: jgarzik; +Cc: linux-ide, linux-scsi, brking
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>
---
libata-dev-bjking1/drivers/scsi/libata-core.c | 1 +
1 files changed, 1 insertion(+)
diff -puN drivers/scsi/libata-core.c~libata_setup_nbytes drivers/scsi/libata-core.c
--- libata-dev/drivers/scsi/libata-core.c~libata_setup_nbytes 2006-06-05 12:52:22.000000000 -0500
+++ libata-dev-bjking1/drivers/scsi/libata-core.c 2006-06-06 08:55:34.000000000 -0500
@@ -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);
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/6] libata: Setup nbytes in ata_sg_init_one
2006-06-07 16:25 [PATCH 1/6] libata: Setup nbytes in ata_sg_init_one Brian King
@ 2006-06-12 3:24 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2006-06-12 3:24 UTC (permalink / raw)
To: Brian King; +Cc: linux-ide, linux-scsi
applied to #upstream
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-12 3:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-07 16:25 [PATCH 1/6] libata: Setup nbytes in ata_sg_init_one Brian King
2006-06-12 3:24 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).