* [PATCH 1/1] libata: Initialize nbytes for internal sg commands
@ 2007-01-30 17:32 Brian King
0 siblings, 0 replies; 3+ messages in thread
From: Brian King @ 2007-01-30 17:32 UTC (permalink / raw)
To: jgarzik; +Cc: linux-ide, brazilnut, brking
Some LLDDs, like ipr, use nbytes and pad_len to determine
the total data transfer length of a command. Make sure
nbytes gets initialized for internally generated commands.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
---
Jeff,
This bug is already fixed in #upstream, with Tejun's patch,
which does away with nsect, but it is still broken in 2.6.20.
This is a resend of my original, 1 line patch. If this doesn't
make 2.6.20, it might be a candidate for -stable, since without
it, libata is not able to find SATA devices attached with ipr.
Thanks,
Brian
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
---
linux-2.6-bjking1/drivers/ata/libata-core.c | 1 +
1 files changed, 1 insertion(+)
diff -puN drivers/ata/libata-core.c~libata_fix_nbytes drivers/ata/libata-core.c
--- linux-2.6/drivers/ata/libata-core.c~libata_fix_nbytes 2007-01-30 11:24:20.000000000 -0600
+++ linux-2.6-bjking1/drivers/ata/libata-core.c 2007-01-30 11:24:20.000000000 -0600
@@ -1250,6 +1250,7 @@ unsigned ata_exec_internal_sg(struct ata
ata_sg_init(qc, sg, n_elem);
qc->nsect = buflen / ATA_SECT_SIZE;
+ qc->nbytes = buflen;
}
qc->private_data = &wait;
_
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] libata: Initialize nbytes for internal sg commands
[not found] <1170178343430-patch-mail.ibm.com>
2007-02-01 1:26 ` Tejun Heo
@ 2007-02-02 16:54 ` Jeff Garzik
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2007-02-02 16:54 UTC (permalink / raw)
To: Brian King; +Cc: linux-ide, brazilnut
Brian King wrote:
> Some LLDDs, like ipr, use nbytes and pad_len to determine
> the total data transfer length of a command. Make sure
> nbytes gets initialized for internally generated commands.
>
> Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
> ---
>
> Jeff,
>
> This bug is already fixed in #upstream, with Tejun's patch,
> which does away with nsect, but it is still broken in 2.6.20.
> This is a resend of my original, 1 line patch. If this doesn't
> make 2.6.20, it might be a candidate for -stable, since without
> it, libata is not able to find SATA devices attached with ipr.
>
> Thanks,
>
> Brian
>
> Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
applied
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] libata: Initialize nbytes for internal sg commands
[not found] <1170178343430-patch-mail.ibm.com>
@ 2007-02-01 1:26 ` Tejun Heo
2007-02-02 16:54 ` Jeff Garzik
1 sibling, 0 replies; 3+ messages in thread
From: Tejun Heo @ 2007-02-01 1:26 UTC (permalink / raw)
To: Brian King; +Cc: jgarzik, linux-ide, brazilnut
Brian King wrote:
> Some LLDDs, like ipr, use nbytes and pad_len to determine
> the total data transfer length of a command. Make sure
> nbytes gets initialized for internally generated commands.
>
> Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Acked-by: Tejun Heo <htejun@gmail.com>
--
tejun
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-02 16:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-30 17:32 [PATCH 1/1] libata: Initialize nbytes for internal sg commands Brian King
[not found] <1170178343430-patch-mail.ibm.com>
2007-02-01 1:26 ` Tejun Heo
2007-02-02 16:54 ` Jeff Garzik
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.