Re: [PATCH] dma/pool: do not complain if DMA pool is not allocated

From: Michal Hocko
Date: Thu Aug 11 2022 - 04:25:22 EST


On Thu 11-08-22 09:38:40, Christoph Hellwig wrote:
> On Tue, Aug 09, 2022 at 05:37:59PM +0200, Michal Hocko wrote:
> > Here we go again.
>
> And just as last time I think this is the wrong thing to do.
> IFF we actually need the pool and we can't allocate it we want this
> warning.
>
> But order-10 seems very larger for the 31-bit ISA DMA zone, so we might
> want to look into calculating the pool size based on the zone size
> instead.

No objection for a better size tuning from my side. I find it
I suspect you will need __GFP_NOWARN to be used for downsizing the
request size for all attempts anyway.

--
Michal Hocko
SUSE Labs