]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - scrub/phase6.c
xfs_scrub: abort all read verification work immediately on error
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 17 Oct 2019 02:35:25 +0000 (22:35 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 17 Oct 2019 02:35:25 +0000 (22:35 -0400)
commit4cd869e5a6af916d988795191804495d0e1e96cb
tree6e7a45915703dd83c13628a4b4f7bd489a810fd4
parent5c657f1e5a9329edda1da00864375b2d5591a1bd
xfs_scrub: abort all read verification work immediately on error

Add a new abort function to the read verify pool code so that the caller
can immediately abort all pending verification work if things start
going wrong.  There's no point in waiting for queued work to run if
we've already decided to bail.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/phase6.c
scrub/read_verify.c
scrub/read_verify.h