------- Comment From <email address hidden> 2022-02-04 09:19 EDT-------
Actually the customer problem is fixed by the second part of the patch.
(alloc_page can issue warnings, but dev_alloc_page does not).
Would it be a solution to only backport the second part?
Are there any conventions how to document that in the commit header?
e.g. like this:
===================================================================
Author: Julian Wiedmann <email address hidden>
Date: Wed Mar 18 13:54:45 2020 +0100
s390/qeth: use memory reserves to back RX buffers
Use dev_alloc_page() for backing the RX buffers with pages. This way we
pick up __GFP_MEMALLOC.
Signed-off-by: Julian Wiedmann <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry-picked from commit 714c9108851743bb718fbc1bfb81290f12a53854)
[__GFP_NOWARN for running devices]
Signed-off-by: Alexandra Winter <email address hidden>
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index ec8c7a640d9e..e106db961c43 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -2612,7 +2612,7 @@ static struct qeth_buffer_pool_entry *qeth_find_free_buffer_pool_entry(
struct qeth_buffer_pool_entry, list);
for (i = 0; i < QETH_MAX_BUFFER_ELEMENTS(card); ++i) {
if (page_count(virt_to_page(entry->elements[i])) > 1) {
- page = alloc_page(GFP_ATOMIC);
+ page = dev_alloc_page();
if (!page) {
return NULL;
} else {
------- Comment From <email address hidden> 2022-02-04 09:19 EDT-------
Actually the customer problem is fixed by the second part of the patch.
(alloc_page can issue warnings, but dev_alloc_page does not).
Would it be a solution to only backport the second part?
Are there any conventions how to document that in the commit header?
e.g. like this: ======= ======= ======= ======= ======= ======= ======= ======= ====
=======
Author: Julian Wiedmann <email address hidden>
Date: Wed Mar 18 13:54:45 2020 +0100
s390/qeth: use memory reserves to back RX buffers
Use dev_alloc_page() for backing the RX buffers with pages. This way we
pick up __GFP_MEMALLOC.
Signed-off-by: Julian Wiedmann <email address hidden> b718fbc1bfb8129 0f12a53854)
Signed-off-by: David S. Miller <email address hidden>
(cherry-picked from commit 714c9108851743b
[__GFP_NOWARN for running devices]
Signed-off-by: Alexandra Winter <email address hidden>
diff --git a/drivers/ s390/net/ qeth_core_ main.c b/drivers/ s390/net/ qeth_core_ main.c .e106db961c43 100644 s390/net/ qeth_core_ main.c s390/net/ qeth_core_ main.c pool_entry *qeth_find_ free_buffer_ pool_entry( pool_entry, list); BUFFER_ ELEMENTS( card); ++i) { virt_to_ page(entry- >elements[ i])) > 1) { GFP_ATOMIC) ;
index ec8c7a640d9e.
--- a/drivers/
+++ b/drivers/
@@ -2612,7 +2612,7 @@ static struct qeth_buffer_
struct qeth_buffer_
for (i = 0; i < QETH_MAX_
if (page_count(
- page = alloc_page(
+ page = dev_alloc_page();
if (!page) {
return NULL;
} else {