Skip to content

Commit 84bda12

Browse files
htejunJeff Garzik
authored andcommitted
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>
1 parent 5825627 commit 84bda12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/libata.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,8 @@ struct ata_port {
751751
acpi_handle acpi_handle;
752752
struct ata_acpi_gtm __acpi_init_gtm; /* use ata_acpi_init_gtm() */
753753
#endif
754-
u8 sector_buf[ATA_SECT_SIZE]; /* owned by EH */
754+
/* owned by EH */
755+
u8 sector_buf[ATA_SECT_SIZE] ____cacheline_aligned;
755756
};
756757

757758
/* The following initializer overrides a method to NULL whether one of

0 commit comments

Comments
 (0)