diff options
author | Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> | 2015-11-05 18:47:26 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-05 19:34:48 -0800 |
commit | a5f65109026b35b654b94fdcd26a971185a53adc (patch) | |
tree | 8367ff9f1496ed3cbb8228a1266c5a924cb9b394 /Documentation/vm | |
parent | aa750fd71c242dba02ee2034e15fbd7d0cdb2461 (diff) | |
download | op-kernel-dev-a5f65109026b35b654b94fdcd26a971185a53adc.zip op-kernel-dev-a5f65109026b35b654b94fdcd26a971185a53adc.tar.gz |
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/vm')
0 files changed, 0 insertions, 0 deletions