From: Kevin Hao <[email protected]>

For rt kernel, the console printing occurs either atomically or from
the printing kthread, all the printk defer functions have been dropped
by commit 25f13bd1d07b ("printk: remove deferred printing"). This patch
drops the new one which is introduced by stable commit 0431e1323f42
("mm/page_alloc: fix potential deadlock on zonelist_update_seq seqlock").

Signed-off-by: Kevin Hao <[email protected]>
Signed-off-by: Bruce Ashfield <[email protected]>
Signed-off-by: Li Wang <[email protected]>
---
 mm/page_alloc.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 5f1c50a6bebc..44f5c69b2ded 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -6051,13 +6051,6 @@ static void __build_all_zonelists(void *data)
         * (e.g. GFP_ATOMIC) that could hit zonelist_iter_begin and livelock.
         */
        local_irq_save(flags);
-       /*
-        * Explicitly disable this CPU's synchronous printk() before taking
-        * seqlock to prevent any printk() from trying to hold port->lock, for
-        * tty_insert_flip_string_and_push_buffer() on other CPU might be
-        * calling kmalloc(GFP_ATOMIC | __GFP_NOWARN) with port->lock held.
-        */
-       printk_deferred_enter();
        write_seqlock(&zonelist_update_seq);
 
 #ifdef CONFIG_NUMA
@@ -6092,7 +6085,6 @@ static void __build_all_zonelists(void *data)
        }
 
        write_sequnlock(&zonelist_update_seq);
-       printk_deferred_exit();
        local_irq_restore(flags);
 }
 
-- 
2.39.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12640): 
https://lists.yoctoproject.org/g/linux-yocto/message/12640
Mute This Topic: https://lists.yoctoproject.org/mt/99079886/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to