[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220407145221.GF15609@twin.jikos.cz>
Date: Thu, 7 Apr 2022 16:52:21 +0200
From: David Sterba <dsterba@...e.cz>
To: Sweet Tea Dorminy <sweettea-kernel@...miny.me>
Cc: Chris Mason <clm@...com>, Josef Bacik <josef@...icpanda.com>,
David Sterba <dsterba@...e.com>, linux-kernel@...r.kernel.org,
linux-btrfs@...r.kernel.org, kernel-team@...com,
David Sterba <dsterba@...e.cz>
Subject: Re: [PATCH] btrfs: wait between incomplete batch allocations
On Wed, Apr 06, 2022 at 02:24:18PM -0400, Sweet Tea Dorminy wrote:
> When allocating memory in a loop, each iteration should call
> memalloc_retry_wait() in order to prevent starving memory-freeing
> processes (and to mark where allcoation loops are). ext4, f2fs, and xfs
> all use this function at present for their allocation loops; btrfs ought
> also.
>
> The bulk page allocation is the only place in btrfs with an allocation
> retry loop, so add an appropriate call to it.
>
> Suggested-by: David Sterba <dsterba@...e.cz>
> Signed-off-by: Sweet Tea Dorminy <sweettea-kernel@...miny.me>
Added to misc-next, thanks.
Powered by blists - more mailing lists