diff options
author | Venky Shankar <vshankar@redhat.com> | 2015-05-21 19:55:02 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2015-05-30 21:14:10 -0700 |
commit | 85173e43faba9bbedd287a4103c129e289829e1f (patch) | |
tree | d1e5b7bc971eb97e88b53ad75ea56b628da12a09 /xlators/features/read-only | |
parent | 5f6876918e9c353bf0ebcd35707fb5cd8876c956 (diff) |
features/bitrot: reimplement scrubbing frequency
This patch reimplments existing scrub-frequency mechanism used
to schedule scrubber runs. Existing mechanism uses periodic
sleeps (waking up periodically on minimum granularity) and
performing a number of tracking checks based on counters and
sleep times. This patch does away with all the nifty counters
and uses timer-wheel to schedule scrub runs.
Scheduling changes are peformed by merely calculating the new
expiry time and calling mod_timer() [mod_timer_pending() in
some cases] making the code more debuggable and easier to
follow. This also introduces "hourly" scrubbing tunable as an
aid for testing scrubbing during development/testing cycle.
One could also implement on-demand scrubbing with ease: by
invoking mod_timer() with an expiry of one (1) second, thereby
scheduling a scrub run the very next second.
Change-Id: I6c7c5f0c6c9f886bf574d88c04cde14b76e60a8b
BUG: 1224647
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Reviewed-on: http://review.gluster.org/10902
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/features/read-only')
0 files changed, 0 insertions, 0 deletions