On Tue, Sep 26, 2023 at 04:32:56PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > Introduce the concept of a defer ops barrier to separate consecutively > queued pending work items of the same type. With a barrier in place, > the two work items will be tracked separately, and receive separate log > intent items. The goal here is to prevent reaping of old metadata > blocks from creating unnecessarily huge EFIs that could then run the > risk of overflowing the scrub transaction. > > Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> > --- > fs/xfs/libxfs/xfs_defer.c | 83 +++++++++++++++++++++++++++++++++++++++++++++ > fs/xfs/libxfs/xfs_defer.h | 3 ++ > fs/xfs/scrub/reap.c | 5 +++ > 3 files changed, 91 insertions(+) Looks good. Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx> -- Dave Chinner david@xxxxxxxxxxxxx