On Fri, Sep 28, 2018 at 07:18:02AM -0400, Josef Bacik wrote: > Allocating new chunks modifies both the extent and chunk tree, which can > trigger new chunk allocations. So instead of doing list_for_each_safe, > just do while (!list_empty()) so we make sure we don't exit with other > pending bg's still on our list. > > Reviewed-by: Omar Sandoval <osandov@xxxxxx> > Reviewed-by: Liu Bo <bo.liu@xxxxxxxxxxxxxxxxx> > Signed-off-by: Josef Bacik <josef@xxxxxxxxxxxxxx> Reviewed-by: David Sterba <dsterba@xxxxxxxx>
