From: Lars Ellenberg Date: Wed, 11 Aug 2010 19:21:50 +0000 (+0200) Subject: drbd: use rolling marks for resync speed calculation X-Git-Tag: v2.6.37-rc1~167^2~45 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d7734a0df02ff5068ff8baa1447c7baee601db1;p=pandora-kernel.git drbd: use rolling marks for resync speed calculation The current resync speed as displayed in /proc/drbd fluctuates a lot. Using an array of rolling marks makes this calculation much more stable. We used to have this (a long time ago with 0.7), but it got lost somehow. If "stalled", do not discard the rest of the information, just add a " (stalled)" tag to the progress line. This patch also shortens a spinlock critical section somewhat, and reduces the number of atomic operations in put_ldev. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed