Re: [PATCH] btrfs: Remove spurious unlock/lock of unused_bgs_lock
From: David Sterba <hidden> Date: 2021-11-04 17:14:11
On Thu, Oct 14, 2021 at 10:03:11AM +0300, Nikolay Borisov wrote:
Since both unused block groups and reclaim bgs lists are protected by
unused_bgs_lock then free them in the same critical section without
doing an extra unlock/lock pair.
Signed-off-by: Nikolay Borisov <redacted>
Added to misc-next. The cond_resched in the loops still makes sense but
is for another patch.