]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: restore allocation trylock iteration
authorDave Chinner <dchinner@redhat.com>
Fri, 16 Jun 2023 01:37:18 +0000 (18:37 -0700)
committerCarlos Maiolino <cem@kernel.org>
Thu, 22 Jun 2023 12:07:14 +0000 (14:07 +0200)
commit8b2a40fffad68e881398f17dabd2801d8b20fcd0
tree750501fb92379e958b9a14e4de3eb0add74d35af
parent05a3a3895651153c3123fc28c1f8fd30a9ca9685
xfs: restore allocation trylock iteration

Source kernel commit: 00dcd17cfa7f103f7d640ffd34645a2ddab96330

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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_alloc.c