]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_scrub: implement background mode for phase 6
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 6 Nov 2019 22:27:06 +0000 (17:27 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 6 Nov 2019 22:27:06 +0000 (17:27 -0500)
commit16dbab1a1f8afff574273e7771d9f15300a6dc26
tree86d3cce38008ed5b0f2556af746f611ece2d1c19
parenta3158a7542f39f32c9c1b389edd85e7c46c95b96
xfs_scrub: implement background mode for phase 6

Phase 6 doesn't implement background mode, which means that it doesn't
run in single-threaded mode with one -b and it doesn't sleep between
calls with multiple -b like every other phase does.  It also doesn't
restrict the amount of work per kernel call, which is a key part of
throttling.  Wire up the necessary pieces to make it behave like the man
page says it should.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/read_verify.c