diff options
author | Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> | 2015-11-06 05:47:26 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-06 06:34:48 +0300 |
commit | a5f65109026b35b654b94fdcd26a971185a53adc (patch) | |
tree | 8367ff9f1496ed3cbb8228a1266c5a924cb9b394 /Documentation/aoe | |
parent | aa750fd71c242dba02ee2034e15fbd7d0cdb2461 (diff) | |
download | linux-a5f65109026b35b654b94fdcd26a971185a53adc.tar.xz |
mm: hwpoison: ratelimit messages from unpoison_memory()
Currently kernel prints out results of every single unpoison event, which
i= s not necessary because unpoison is purely a testing feature and
testers can = get little or no information from lots of lines of unpoison
log storm. So this patch ratelimits printk in unpoison_memory().
This patch introduces a file local ratelimit_state, which adds 64 bytes to
memory-failure.o. If we apply pr_info_ratelimited() for 8 callsite below,
2= 56 bytes is added, so it's a win.
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Wanpeng Li <wanpeng.li@hotmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/aoe')
0 files changed, 0 insertions, 0 deletions