Whamcloud - gitweb
LU-719 ldiskfs: fix error message rate-limiting logic in kmmpd
authorNikitas Angelinas <nikitas_angelinas@xyratex.com>
Tue, 14 Feb 2012 09:07:54 +0000 (09:07 +0000)
committerOleg Drokin <green@whamcloud.com>
Fri, 24 Feb 2012 01:01:28 +0000 (20:01 -0500)
commit6a37de8aca60315a22be7a60e63095646332b9a1
tree817dfd4df11a19a72147c98c6805b521363f01c3
parentdf764443d452c1db1db5e72f72c9ad6e0819f567
LU-719 ldiskfs: fix error message rate-limiting logic in kmmpd

Current logic would print an error message only once, and then
'failed_writes' would stay at 1. Rework the loop to increment
'failed_writes' and print the error message every
s_mmp_update_interval * 60 seconds, as intended according to the
comment.

Signed-off-by: Nikitas Angelinas <nikitas_angelinas@xyratex.com>
Change-Id: I0c8d90927bd618542026ab5fc70cf12b85898dc3
Reviewed-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Xyratex-bug-id: MRP-222
Reviewed-on: http://review.whamcloud.com/1420
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch
ldiskfs/kernel_patches/patches/ext4-mmp-rhel6.patch