]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_scrub_all: implement retry and backoff for dbus calls
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:18 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:10 +0000 (17:01 -0700)
commite46249ec0b96ac5ced5b49928d3b3865b6d9546c
tree39f47e9ead0369dd4c9117c9f7d6498e2dd7d9c5
parent6d831e770359fffdfa53d1049776da81a1417a4a
xfs_scrub_all: implement retry and backoff for dbus calls

Calls to systemd across dbus are remote procedure calls, which means
that they're subject to transitory connection failures (e.g. systemd
re-exec itself).  We don't want to fail at the *first* sign of what
could be temporary trouble, so implement a limited retry with fibonacci
backoff before we resort to invoking xfs_scrub as a subprocess.

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