diff options
| author | Darrick J. Wong <djwong@kernel.org> | 2026-07-26 22:24:02 -0700 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-08-03 10:17:34 +0200 |
| commit | b1a296fc2241f724ef8f14da6a4efa800d444dac (patch) | |
| tree | f7e13c35624b1afcd77c344b923fa8fcc654a635 /tools/perf/scripts/python | |
| parent | 5ee37132ea81abd36213b31a72140660c2aac54b (diff) | |
xfs: nlink scrub must take IOLOCK before determining ILOCK state
In xchk_nlinks_ilock_dir, take the IOLOCK before accessing internal
inode state to figure out if we need to take ILOCK shared or exclusive.
That way we can't race with directory updates. LOLLM pointed out that
the code was initially correct w.r.t. the IOLOCK, but then I broke it.
Cc: stable@vger.kernel.org # v6.18
Fixes: f477af0cfa0487 ("xfs: fix locking in xchk_nlinks_collect_dir")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Assisted-by: LOLLM # finding obvious bugs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
