tag name | scrub-drain-intents-6.4_2023-04-12 (967912c00769236fe7f3f49c960118ce4e3a1573) |
tag date | 2023-04-12 17:40:09 -0700 |
tagged by | Darrick J. Wong <djwong@kernel.org> |
tagged object | commit 88accf1722... |
xfs: drain deferred work items when scrubbing [v24.5]
The design doc for XFS online fsck contains a long discussion of the
eventual consistency models in use for XFS metadata. In that chapter,
we note that it is possible for scrub to collide with a chain of
deferred space metadata updates, and proposes a lightweight solution:
The use of a pending-intents counter so that scrub can wait for the
system to drain all chains.
This patchset implements that scrub drain. The first patch implements
the basic mechanism, and the subsequent patches reduce the runtime
overhead by converting the implementation to use sloppy counters and
introducing jump labels to avoid walking into scrub hooks when it isn't
running. This last paradigm repeats elsewhere in this megaseries.
v23.1: make intent items take an active ref to the perag structure and
document why we bump and drop the intent counts when we do
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
-----BEGIN PGP SIGNATURE-----
iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZDdPaQAKCRBKO3ySh0YR
prO5AQDf/qA61iYSTrhRhhEFCyN4+xxWSctsyWiUi27DjtYxCAD/X3XCO0wz7ctI
bUHI6Osx5b8/S5lyAcIea+LfVD+u4gQ=
=xQx5
-----END PGP SIGNATURE-----