xfs: restore allocation trylock iteration
authorDave Chinner <dchinner@redhat.com>
Sun, 4 Jun 2023 18:06:27 +0000 (04:06 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 4 Jun 2023 18:06:27 +0000 (04:06 +1000)
commit00dcd17cfa7f103f7d640ffd34645a2ddab96330
treeea7a41ed39f31de36f4e0441ffd0c232b8e50d74
parent89a4bf0dc3857569a77061d3d5ea2ac85f7e13c6
xfs: restore allocation trylock iteration

It was accidentally dropped when refactoring the allocation code,
resulting in the AG iteration always doing blocking AG iteration.
This results in a small performance regression for a specific fsmark
test that runs more user data writer threads than there are AGs.

Reported-by: kernel test robot <oliver.sang@intel.com>
Fixes: 2edf06a50f5b ("xfs: factor xfs_alloc_vextent_this_ag() for _iterate_ags()")
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_alloc.c