* + mm-cma-use-pr_err_ratelimited-for-cma-warning.patch added to -mm tree
@ 2021-03-11 23:17 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-03-11 23:17 UTC (permalink / raw)
To: baolin.wang, david, minchan, mm-commits
The patch titled
Subject: mm: cma: use pr_err_ratelimited for CMA warning
has been added to the -mm tree. Its filename is
mm-cma-use-pr_err_ratelimited-for-cma-warning.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-cma-use-pr_err_ratelimited-for-cma-warning.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-cma-use-pr_err_ratelimited-for-cma-warning.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Baolin Wang <baolin.wang@linux.alibaba.com>
Subject: mm: cma: use pr_err_ratelimited for CMA warning
If we did not reserve extra CMA memory, the log buffer can be easily
filled up by CMA failure warning when the devices calling
dmam_alloc_coherent() to alloc DMA memory. Thus we can use
pr_err_ratelimited() instead to reduce the duplicate CMA warning.
Link: https://lkml.kernel.org/r/ce2251ef49e1727a9a40531d1996660b05462bd2.1615279825.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/cma.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/mm/cma.c~mm-cma-use-pr_err_ratelimited-for-cma-warning
+++ a/mm/cma.c
@@ -500,8 +500,8 @@ struct page *cma_alloc(struct cma *cma,
}
if (ret && !no_warn) {
- pr_err("%s: %s: alloc failed, req-size: %zu pages, ret: %d\n",
- __func__, cma->name, count, ret);
+ pr_err_ratelimited("%s: %s: alloc failed, req-size: %zu pages, ret: %d\n",
+ __func__, cma->name, count, ret);
cma_debug_show_areas(cma);
}
_
Patches currently in -mm which might be from baolin.wang@linux.alibaba.com are
mm-cma-use-pr_err_ratelimited-for-cma-warning.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-11 23:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 23:17 + mm-cma-use-pr_err_ratelimited-for-cma-warning.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).