]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: don't retry unsupported optimizations
authorDarrick J. Wong <djwong@kernel.org>
Wed, 20 Dec 2023 16:53:46 +0000 (08:53 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 22 Dec 2023 02:29:14 +0000 (18:29 -0800)
commit61060062b5523ca60b22f21a69658364bc9e7b20
tree781ffae7011c0b97e8e5f53b689152e1ef4dca21
parent817d1b67b6da0a1e2ac94c73ac12fcdb10be1d1e
xfs_scrub: don't retry unsupported optimizations

If the kernel says it doesn't support optimizing a data structure, we
should mark it done and move on.  This is much better than requeuing the
repair, in which case it will likely keep failing.  Eventually these
requeued repairs end up in the single-threaded last resort at the end of
phase 4, which makes things /very/ slow.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/scrub.c