libata: align ap->sector_buf
authorTejun Heo <tj@kernel.org>
Mon, 2 Mar 2009 09:53:26 +0000 (18:53 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 5 Mar 2009 12:25:02 +0000 (07:25 -0500)
ap->sector_buf is used as DMA target and should at least be aligned on
cacheline.  This caused problems on some embedded machines.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
include/linux/libata.h

index fbf064e13ad5d898d23e7c840d38562a825e065b..dc18b87ed72244e90e898f43885f5bdca3c806b2 100644 (file)
@@ -751,7 +751,8 @@ struct ata_port {
        acpi_handle             acpi_handle;
        struct ata_acpi_gtm     __acpi_init_gtm; /* use ata_acpi_init_gtm() */
 #endif
-       u8                      sector_buf[ATA_SECT_SIZE]; /* owned by EH */
+       /* owned by EH */
+       u8                      sector_buf[ATA_SECT_SIZE] ____cacheline_aligned;
 };
 
 /* The following initializer overrides a method to NULL whether one of