Re: [PATCH v2] trace/pid_list: Change gfp flags in pid_list_fill_irq()

2024-07-05 Thread Google
On Thu, 4 Jul 2024 16:02:26 +0100 Levi Yun wrote: > From: "levi.yun" > > pid_list_fill_irq() runs via irq_work. > When CONFIG_PREEMPT_RT is disabled, it would run in irq_context. > so it shouldn't sleep while memory allocation. > > Change gfp flags from GFP_KERNEL to GFP_NOWAIT to prevent sle

[PATCH v2] trace/pid_list: Change gfp flags in pid_list_fill_irq()

2024-07-04 Thread Levi Yun
From: "levi.yun" pid_list_fill_irq() runs via irq_work. When CONFIG_PREEMPT_RT is disabled, it would run in irq_context. so it shouldn't sleep while memory allocation. Change gfp flags from GFP_KERNEL to GFP_NOWAIT to prevent sleep in irq_work. This change wouldn't impact functionality in pract