* + mm-dmapool-use-might_alloc.patch added to -mm tree
@ 2021-01-13 23:45 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-01-13 23:45 UTC (permalink / raw)
To: daniel.vetter, daniel.vetter, mm-commits
The patch titled
Subject: mm/dmapool: use might_alloc()
has been added to the -mm tree. Its filename is
mm-dmapool-use-might_alloc.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-dmapool-use-might_alloc.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-dmapool-use-might_alloc.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: Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: mm/dmapool: use might_alloc()
Now that my little helper has landed, use it more. On top of the existing
check this also uses lockdep through the fs_reclaim annotations.
Link: https://lkml.kernel.org/r/20210113135009.3606813-1-daniel.vetter@ffwll.ch
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/dmapool.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/mm/dmapool.c~mm-dmapool-use-might_alloc
+++ a/mm/dmapool.c
@@ -28,6 +28,7 @@
#include <linux/mutex.h>
#include <linux/poison.h>
#include <linux/sched.h>
+#include <linux/sched/mm.h>
#include <linux/slab.h>
#include <linux/stat.h>
#include <linux/spinlock.h>
@@ -319,7 +320,7 @@ void *dma_pool_alloc(struct dma_pool *po
size_t offset;
void *retval;
- might_sleep_if(gfpflags_allow_blocking(mem_flags));
+ might_alloc(mem_flags);
spin_lock_irqsave(&pool->lock, flags);
list_for_each_entry(page, &pool->page_list, page_list) {
_
Patches currently in -mm which might be from daniel.vetter@ffwll.ch are
mm-dmapool-use-might_alloc.patch
bdi-use-might_alloc.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-14 1:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-13 23:45 + mm-dmapool-use-might_alloc.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).