Re: block: DMA alignment of IO buffer allocated from slab

2018-09-24 Thread Christopher Lameter
On Mon, 24 Sep 2018, Bart Van Assche wrote: > That means that two buffers allocated with kmalloc() may share a cache line on > x86-64. Since it is allowed to use a buffer allocated by kmalloc() for DMA, > can > this lead to data corruption, e.g. if the CPU writes into one buffer allocated > with

Re: block: DMA alignment of IO buffer allocated from slab

2018-09-24 Thread Bart Van Assche
On Mon, 2018-09-24 at 17:43 +0300, Andrey Ryabinin wrote: > > On 09/24/2018 05:19 PM, Bart Van Assche wrote: > > On 9/24/18 2:46 AM, Andrey Ryabinin wrote: > > > On 09/24/2018 01:42 AM, Ming Lei wrote: > > > > On Fri, Sep 21, 2018 at 03:04:18PM +0200, Vitaly Kuznetsov wrote: > > > > > Christoph He