summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-12-02 21:57:36 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-18 11:34:42 +0300
commit681ee24cd5a2e4cafca449fecbcddba4fbdb080d (patch)
tree33878eed16ab324804a72fe8fc665929f4cc3686 /tools/perf/scripts/python/sched-migration.py
parent6b8aa7944351be4a846649b2790521240a432d4b (diff)
downloadlinux-681ee24cd5a2e4cafca449fecbcddba4fbdb080d.tar.xz
xfs: don't lose solo dquot update transactions
commit 07137e925fa951646325762bda6bd2503dfe64c6 upstream. Quota counter updates are tracked via incore objects which hang off the xfs_trans object. These changes are then turned into dirty log items in xfs_trans_apply_dquot_deltas just prior to commiting the log items to the CIL. However, updating the incore deltas do not cause XFS_TRANS_DIRTY to be set on the transaction. In other words, a pure quota counter update will be silently discarded if there are no other dirty log items attached to the transaction. This is currently not the case anywhere in the filesystem because quota updates always dirty at least one other metadata item, but a subsequent bug fix will add dquot log item precommits, so we actually need a dirty dquot log item prior to xfs_trans_run_precommits. Also let's not leave a logic bomb. Cc: <stable@vger.kernel.org> # v2.6.35 Fixes: 0924378a689ccb ("xfs: split out iclog writing from xfs_trans_commit()") Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions