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

From: Christoph Hellwig
Date: Thu Sep 20 2018 - 02:31:31 EST


On Wed, Sep 19, 2018 at 05:15:43PM +0800, Ming Lei wrote:
> 1) does kmalloc-N slab guarantee to return N-byte aligned buffer? If
> yes, is it a stable rule?

This is the assumption in a lot of the kernel, so I think if somethings
breaks this we are in a lot of pain.