Hi all, Here's a v4 RFC for automatic relogging and probably the closest one IMO to a non-RFC worthy implementation. There's still a few kinks, but this might be the right combination of simplicity, effectiveness and flexibility for future enhancement. Patch 1 adds the mechanism and patch 2 uses it for the quotaoff start intent. See the commit logs for further details. Thoughts, reviews, flames appreciated. Brian rfcv4: - AIL based approach. rfcv3: https://lore.kernel.org/linux-xfs/20191125185523.47556-1-bfoster@xxxxxxxxxx/ - CIL based approach. rfcv2: https://lore.kernel.org/linux-xfs/20191122181927.32870-1-bfoster@xxxxxxxxxx/ - Different approach based on workqueue and transaction rolling. rfc: https://lore.kernel.org/linux-xfs/20191024172850.7698-1-bfoster@xxxxxxxxxx/ Brian Foster (2): xfs: automatic log item relog mechanism xfs: automatically relog the quotaoff start intent fs/xfs/xfs_dquot_item.c | 7 +++++ fs/xfs/xfs_qm_syscalls.c | 9 +++++++ fs/xfs/xfs_trace.h | 1 + fs/xfs/xfs_trans.c | 30 +++++++++++++++++++++ fs/xfs/xfs_trans.h | 7 ++++- fs/xfs/xfs_trans_ail.c | 56 ++++++++++++++++++++++++++++++++++++++-- fs/xfs/xfs_trans_priv.h | 5 ++++ 7 files changed, 112 insertions(+), 3 deletions(-) -- 2.20.1