diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:06:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:06:00 +0000 |
commit | b15a952c52a6825376d3e7f6c1bf5c886c6d8b74 (patch) | |
tree | 1500f2f8f276908a36d8126cb632c0d6b1276764 /debian/patches-rt/0322-rt-mm-page_alloc-backport-missing-bits-from-__build_.patch | |
parent | Adding upstream version 5.10.209. (diff) | |
download | linux-debian.tar.xz linux-debian.zip |
Adding debian version 5.10.209-2.debian/5.10.209-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches-rt/0322-rt-mm-page_alloc-backport-missing-bits-from-__build_.patch')
-rw-r--r-- | debian/patches-rt/0322-rt-mm-page_alloc-backport-missing-bits-from-__build_.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/debian/patches-rt/0322-rt-mm-page_alloc-backport-missing-bits-from-__build_.patch b/debian/patches-rt/0322-rt-mm-page_alloc-backport-missing-bits-from-__build_.patch new file mode 100644 index 000000000..8c13d7c63 --- /dev/null +++ b/debian/patches-rt/0322-rt-mm-page_alloc-backport-missing-bits-from-__build_.patch @@ -0,0 +1,49 @@ +From dbe86f5017c79c8abb6f42a6f0f1ad8d97dbae46 Mon Sep 17 00:00:00 2001 +From: "Luis Claudio R. Goncalves" <lgoncalv@redhat.com> +Date: Wed, 20 Dec 2023 10:20:48 -0300 +Subject: [PATCH 322/323] rt: mm/page_alloc: backport missing bits from + __build_all_zonelists() fix +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.10/older/patches-5.10.204-rt100.tar.xz + +A while ago upstream landed commit a2ebb51575828 ("mm/page_alloc: use +write_seqlock_irqsave() instead write_seqlock() + local_irq_save().") +to fix a problem that had already been worked on v5.10-rt via commit +7bdd3bd5143a4 ("Revert "mm/page_alloc: fix potential deadlock on +zonelist_update_seqseqlock""). Sebastian pointed out it was important +to backport the missing elements of a2ebb51575828 for code consistency. + +Fixes: 7bdd3bd5143a4 ("Revert "mm/page_alloc: fix potential deadlock on zonelist_update_seqseqlock"") +Cc: stable-rt@vger.kernel.org +Suggested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> +Signed-off-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com> +--- + mm/page_alloc.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/mm/page_alloc.c b/mm/page_alloc.c +index 39d1782b398f..cd1e8d0b2269 100644 +--- a/mm/page_alloc.c ++++ b/mm/page_alloc.c +@@ -6043,8 +6043,9 @@ static void __build_all_zonelists(void *data) + int nid; + int __maybe_unused cpu; + pg_data_t *self = data; ++ unsigned long flags; + +- write_seqlock(&zonelist_update_seq); ++ write_seqlock_irqsave(&zonelist_update_seq, flags); + + #ifdef CONFIG_NUMA + memset(node_load, 0, sizeof(node_load)); +@@ -6077,7 +6078,7 @@ static void __build_all_zonelists(void *data) + #endif + } + +- write_sequnlock(&zonelist_update_seq); ++ write_sequnlock_irqrestore(&zonelist_update_seq, flags); + } + + static noinline void __init +-- +2.43.0 + |