]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_scrub: use multiple threads to run in-kernel metadata scrubs that scan inodes
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:01:17 +0000 (10:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:42 +0000 (11:37 -0700)
commit8fb4b471322e65f7940dc5a14d1dbadf73826795
tree20f3b9b994e8fb10431d16e0a2b05941c2a58bce
parent3ae2c9487cf6351454b33b96f4680cd06abd7f70
xfs_scrub: use multiple threads to run in-kernel metadata scrubs that scan inodes

Instead of running the inode link count and quotacheck scanners in
serial, run them in parallel, with a slight delay to stagger the work to
reduce inode resource contention.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/phase5.c
scrub/scrub.c
scrub/scrub.h