aboutsummaryrefslogtreecommitdiff
path: root/Documentation/cris
diff options
context:
space:
mode:
authorLars Ellenberg2014-03-11 13:47:55 +0100
committerPhilipp Reisner2014-07-10 18:34:59 +0200
commita5655dac75b6c572e1ef430b61ad55245fffd523 (patch)
tree50636b7490394d34029daed62e4d023eccadcbf5 /Documentation/cris
parentcaa3db0e14cc301f07e758f4cadc36d4dead145a (diff)
drbd: fix bogus resync stats in /proc/drbd
We intentionally do not serialize /proc/drbd access with internal state changes or statistic updates. Because of that, cat /proc/drbd may race with resync just being finished, still see the sync state, and find information about number of blocks still to go, but then find the total number of blocks within this resync has just been reset to 0 when accessing it. This now produces bogus numbers in the resync speed estimates. Fix by accessing all relevant data only once, and fixing it up if "still to go" happens to be more than "total". Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'Documentation/cris')
0 files changed, 0 insertions, 0 deletions