Message ID | 20241010093715.1505534-1-yebin@huaweicloud.com (mailing list archive) |
---|---|
State | Under Review |
Headers | show |
Series | xfs: fix use-after-free in xfs_cui_release() | expand |
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 1997981827fb..54faa0608958 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c @@ -3521,6 +3521,7 @@ xlog_recover_finish( * (inode reclaim does this) before we get around to * xfs_log_mount_cancel. */ + xfs_log_force(log->l_mp, XFS_LOG_SYNC); xlog_recover_cancel_intents(log); xfs_alert(log->l_mp, "Failed to recover intents"); xlog_force_shutdown(log, SHUTDOWN_LOG_IO_ERROR);