]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/block/drbd/drbd_proc.c
drbd: fix stalled resync detection in /proc/drbd
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 28 Apr 2014 16:43:16 +0000 (18:43 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 30 Apr 2014 19:46:54 +0000 (13:46 -0600)
commit9ae472605ad333d4db07da95cc42c68063d2cc0d
treefe93c9dd1573f7b785313f2548552f2f1629873a
parentcdc6af8df42313d632cb9ed79dd455daecbd8478
drbd: fix stalled resync detection in /proc/drbd

If we don't make resync or verify progress for "too long",
we want to flag it as "stalled".

Since 2010, "use rolling marks for resync speed calculation"
this "too long" was wrong by a factor of HZ.
With HZ 250, it would have been flagged as stalled
after 100 minutes.

Hardcode 3 minutes instead.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/drbd/drbd_proc.c