diff options
| author | Tejun Heo <tj@kernel.org> | 2009-03-02 04:53:26 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@redhat.com> | 2009-03-05 07:25:02 -0500 |
| commit | 84bda12af31f930e4200c5244aa111de2485d7b0 (patch) | |
| tree | 08d214bf7a1ce56e8c994e7970513bfb4b215e3d | |
| parent | 5825627c9463581fd9e70f8285685889ae5bb9bb (diff) | |
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>
| -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 { | |||
| 751 | acpi_handle acpi_handle; | 751 | acpi_handle acpi_handle; |
| 752 | struct ata_acpi_gtm __acpi_init_gtm; /* use ata_acpi_init_gtm() */ | 752 | struct ata_acpi_gtm __acpi_init_gtm; /* use ata_acpi_init_gtm() */ |
| 753 | #endif | 753 | #endif |
| 754 | u8 sector_buf[ATA_SECT_SIZE]; /* owned by EH */ | 754 | /* owned by EH */ |
| 755 | u8 sector_buf[ATA_SECT_SIZE] ____cacheline_aligned; | ||
| 755 | }; | 756 | }; |
| 756 | 757 | ||
| 757 | /* The following initializer overrides a method to NULL whether one of | 758 | /* The following initializer overrides a method to NULL whether one of |
