This patch set fix two problem when recovery intents fails. Patches 1-2 fix the possible problem that intent items not released. When recovery intents, new intents items may be created during recovery intents. if recovery fails, new intents items may be left in AIL or leaks. Patch 3 fix a uaf problem, when recovery intents fails, intent items may be freed before done item commited. Long Li (3): xfs: factor out xfs_defer_pending_abort xfs: abort intent items when recovery intents fail xfs: make sure done item committed before cancel intents fs/xfs/libxfs/xfs_defer.c | 26 +++++++++++++++++--------- fs/xfs/libxfs/xfs_defer.h | 1 + fs/xfs/xfs_log_recover.c | 15 ++++++++------- 3 files changed, 26 insertions(+), 16 deletions(-) -- 2.31.1