]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: set xfarray killable sort correctly
authorDarrick J. Wong <djwong@kernel.org>
Tue, 14 Jul 2026 06:06:12 +0000 (23:06 -0700)
committerCarlos Maiolino <cem@kernel.org>
Tue, 14 Jul 2026 09:01:47 +0000 (11:01 +0200)
commit540ddc626245f12f56326ee0c1601f71ebb41d64
tree5053f7478315c72bd2e9c6aac3f3bdc43f558af3
parentea6e2d9de25d2095845e0cdf2274e581fd40d636
xfs: set xfarray killable sort correctly

LOLLM noticed that we *disable* interruptible sorts when the KILLABLE
flag is set.  This is backwards.  Fix the incorrect logic, and rename
the variable to make the connection more obvious.

Cc: stable@vger.kernel.org # v6.10
Fixes: 271557de7cbfde ("xfs: reduce the rate of cond_resched calls inside scrub")
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>
fs/xfs/scrub/scrub.h
fs/xfs/scrub/xfarray.c