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

From: Jens Axboe
Date: Mon Sep 24 2018 - 14:09:48 EST

On 9/24/18 12:00 PM, Christopher Lameter wrote:
> On Mon, 24 Sep 2018, Jens Axboe wrote:
>> The situation is making me a little uncomfortable, though. If we export
>> such a setting, we really should be honoring it...
> Various subsystems create custom slab arrays with their particular
> alignment requirement for these allocations.

Oh yeah, I think the solution is basic enough for XFS, for instance.
They just have to error on the side of being cautious, by going full
sector alignment for memory...

Jens Axboe