Huacai Chen 90addc6b3c scsi: use dma_get_cache_alignment() as minimum DMA alignment
In non-coherent DMA mode, kernel uses cache flushing operations to
maintain I/O coherency, so scsi's block queue should be aligned to the
value returned by dma_get_cache_alignment().  Otherwise, If a DMA buffer
and a kernel structure share a same cache line, and if the kernel
structure has dirty data, cache_invalidate (no writeback) will cause
data corruption.

Cc: stable@vger.kernel.org
Signed-off-by: Huacai Chen <chenhc@lemote.com>
[hch: rebased and updated the comment and changelog]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-11-21 23:05:57 -05:00
..
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-15 13:46:33 -08:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-15 13:46:33 -08:00
2017-11-14 16:23:44 -08:00
2017-09-07 12:12:43 -07:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-08-25 17:21:11 -04:00
2017-08-24 22:29:06 -04:00
2017-09-05 08:18:42 -04:00
2017-11-14 16:23:44 -08:00
2017-08-25 17:21:10 -04:00
2017-08-08 11:49:51 -04:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-04-13 13:58:20 -04:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-11-14 16:23:44 -08:00
2017-09-07 12:12:43 -07:00
2017-11-14 16:23:44 -08:00
2017-09-07 12:12:43 -07:00
2017-08-08 11:49:51 -04:00
2017-04-26 18:32:29 -04:00