On 17.12.20 г. 16:36 ч., Josef Bacik wrote:
> We love running delayed refs in commit_cowonly_roots, but it is a bit
> excessive. I was seeing cases of running 3 or 4 refs a few times in a
> row during this time. Instead simply update all of the roots first,
> then run delayed refs, then handle the empty block groups case, and then
> if we have any more dirty roots do the whole thing again. This allows
> us to be much more efficient with our delayed ref running, as we can
> batch a few more operations at once.
>
> Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>