diff options
author | zhenwei pi <pizhenwei@bytedance.com> | 2022-05-13 05:23:10 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-05-13 16:20:19 +0200 |
commit | f0696cb4068a0d79cf9795ad34560d2f6200d42c (patch) | |
tree | 147b864f93097477e410ce8d16956ac2ac0c50ea /mm/hwpoison-inject.c | |
parent | mm/memory-failure.c: add hwpoison_filter for soft offline (diff) | |
download | linux-f0696cb4068a0d79cf9795ad34560d2f6200d42c.tar.xz linux-f0696cb4068a0d79cf9795ad34560d2f6200d42c.zip |
mm/hwpoison: disable hwpoison filter during removing
hwpoison filter is enabled by hwpoison-inject module, after removing this
module, hwpoison filter still works. What is worse, user can not find the
debugfs entries to know this.
Disable the hwpoison filter during removing hwpoison-inject module.
Link: https://lkml.kernel.org/r/20220509105641.491313-5-pizhenwei@bytedance.com
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/hwpoison-inject.c')
-rw-r--r-- | mm/hwpoison-inject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/hwpoison-inject.c b/mm/hwpoison-inject.c index bb0cea5468cb..5c0cddd81505 100644 --- a/mm/hwpoison-inject.c +++ b/mm/hwpoison-inject.c @@ -65,6 +65,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(unpoison_fops, NULL, hwpoison_unpoison, "%lli\n"); static void pfn_inject_exit(void) { + hwpoison_filter_enable = 0; debugfs_remove_recursive(hwpoison_dir); } |