efi: disable mirror feature during crashkernel
authorMa Wupeng <mawupeng1@huawei.com>
Tue, 9 Jan 2024 04:15:36 +0000 (12:15 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Jan 2024 23:20:47 +0000 (15:20 -0800)
commit7ea6ec4c25294e8bc8788148ef854df92ee8dc5e
treed8008ff33eaacb7b91f64f2b4672eaeeedb64a70
parent7bb943806ff61e83ae4cceef8906b7fe52453e8a
efi: disable mirror feature during crashkernel

If the system has no mirrored memory or uses crashkernel.high while
kernelcore=mirror is enabled on the command line then during crashkernel,
there will be limited mirrored memory and this usually leads to OOM.

To solve this problem, disable the mirror feature during crashkernel.

Link: https://lkml.kernel.org/r/20240109041536.3903042-1-mawupeng1@huawei.com
Signed-off-by: Ma Wupeng <mawupeng1@huawei.com>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mm_init.c