]> Git Repo - linux.git/commit
xfs: unwind xfs_extent_busy_clear
authorChristoph Hellwig <[email protected]>
Fri, 5 Apr 2024 06:07:09 +0000 (08:07 +0200)
committerChandan Babu R <[email protected]>
Mon, 22 Apr 2024 07:23:34 +0000 (12:53 +0530)
commitc37d6ed87462751bc979f133a570716089fe40de
treee23228eb4e8b766d5ecf83e819f0860973b3b442
parente78a3ce28331583cc0b57b0602528c4d7628fc19
xfs: unwind xfs_extent_busy_clear

The current structure of xfs_extent_busy_clear that locks the first busy
extent in each AG and unlocks when switching to a new AG makes sparse
unhappy as the lock critical section tracking can't cope with taking the
lock conditionally and inside a loop.

Rewrite xfs_extent_busy_clear so that it has an outer loop only advancing
when moving to a new AG, and an inner loop that consumes busy extents for
the given AG to make life easier for sparse and to also make this logic
more obvious to humans.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: "Darrick J. Wong" <[email protected]>
Signed-off-by: Chandan Babu R <[email protected]>
fs/xfs/xfs_extent_busy.c
This page took 0.07939 seconds and 4 git commands to generate.