Hi all, This series enhances the online scrub and repair code to report their findings to the health tracking subsystem. For now, only scrub gets to record corruption problems, though in principle a metadata read encountering corruption could also set a sick flag. Online repair will clear the appropriate sick flags when metadata passes its inspection after a repair attempt. On the userspace side of things, xfs_scrub will be adapted to give a clean bill of health to the kernel when it is warranted. The first three patches rework the scrub context management code to remove some clunkiness when we decide that we have to start the scrub over. Patch #4 actually teaches scrub to update the health subsystem. If you're going to start using this mess, you probably ought to just pull from my git trees, which are linked below. This is an extraordinary way to destroy everything. Enjoy! Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=scrub-health-tracking