]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Ratelimited mirrored memory related warning messages
authorMa Wupeng <mawupeng1@huawei.com>
Tue, 14 Jun 2022 09:21:53 +0000 (17:21 +0800)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 15 Jun 2022 10:14:00 +0000 (12:14 +0200)
commit34d5eb483f6c979227055255d91d4b844877f4ee
treed4351704542b99f02f1a6c98fd149bf720b16c5f
parent20b2292eae5adec3373bd8e7375e29e82723e6e2
mm: Ratelimited mirrored memory related warning messages

If system has mirrored memory, memblock will try to allocate mirrored
memory firstly and fallback to non-mirrored memory when fails, but if with
limited mirrored memory or some numa node without mirrored memory, lots of
warning message about memblock allocation will occur.

This patch ratelimit the warning message to avoid a very long print during
bootup.

Signed-off-by: Ma Wupeng <mawupeng1@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Link: https://lore.kernel.org/r/20220614092156.1972846-3-mawupeng1@huawei.com
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
mm/memblock.c