diff options
author | Miaohe Lin <[email protected]> | 2022-09-16 15:22:49 +0800 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2022-10-03 14:03:29 -0700 |
commit | b36184553d41c59e6712f9d4699aca24577fbd4a (patch) | |
tree | 2704184de8d6200f1e6e0b1a9e6641a13cca6a0b /net/lapb/lapb_timer.c | |
parent | 30e3b5d7c82f78c63c53197b5d8b99636bb60d56 (diff) |
mm/page_alloc: add missing is_migrate_isolate() check in set_page_guard()
In MIGRATE_ISOLATE case, zone freepage state shouldn't be modified as
caller will take care of it. Add missing is_migrate_isolate() here to
avoid possible unbalanced freepage state. This would happen if someone
isolates the block, and then we face an MCE failure/soft-offline on a page
within that block. __mod_zone_freepage_state() will be triggered via
below call trace which already had been triggered back when block was
isolated:
take_page_off_buddy
break_down_buddy_pages
set_page_guard
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 06be6ff3d2ec ("mm,hwpoison: rework soft offline for free pages")
Signed-off-by: Miaohe Lin <[email protected]>
Reviewed-by: Oscar Salvador <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Cc: Anshuman Khandual <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions