On Thu, Dec 03, 2026 at 08:26:42PM +0530, Aneesh Kumar K.V wrote: > Rather than passing an explicit alignment value through the call chain, > I thought it was clearer to pass the DMA attribute and derive the > required alignment where we check the CMA limit.
I think that is broadly right, but you should not be seperating the cc_make_shared() from the allocator, if the attrs is pushed down then the actual allocator function eventually called should be a shared version that returns shared memory. And then of course that ultimate allocator function will do all the alignment adjustments internally. That is a much better justification for passing attrs further through the API, IMHO, because it is about calling the right kind of *alloctor* not applying some weird alignment adjustment. Jason
