diff options
author | Tejun Heo <tj@kernel.org> | 2009-03-02 10:53:26 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-03-05 13:25:02 +0100 |
commit | 84bda12af31f930e4200c5244aa111de2485d7b0 (patch) | |
tree | 08d214bf7a1ce56e8c994e7970513bfb4b215e3d /include | |
parent | libata: fix dma_unmap_sg misuse (diff) | |
download | linux-84bda12af31f930e4200c5244aa111de2485d7b0.tar.xz linux-84bda12af31f930e4200c5244aa111de2485d7b0.zip |
libata: align ap->sector_buf
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/libata.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index fbf064e13ad5..dc18b87ed722 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -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 |