summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/ionic/ionic_ibdev.c
diff options
context:
space:
mode:
authorVladimir Riabchun <ferr.lambarginio@gmail.com>2025-09-12 13:28:55 +0200
committerSteven Rostedt (Google) <rostedt@goodmis.org>2025-09-30 17:27:58 -0400
commit4099b98203d6b33d990586542fa5beee408032a3 (patch)
treeaf40ef6a2e065a2ad2582d6a60ce5eb0f5b32f9a /drivers/infiniband/hw/ionic/ionic_ibdev.c
parent70bd70c303ad4a00b299cb2468bc6475ff90b5b1 (diff)
ftrace: Fix softlockup in ftrace_module_enable
A soft lockup was observed when loading amdgpu module. If a module has a lot of tracable functions, multiple calls to kallsyms_lookup can spend too much time in RCU critical section and with disabled preemption, causing kernel panic. This is the same issue that was fixed in commit d0b24b4e91fc ("ftrace: Prevent RCU stall on PREEMPT_VOLUNTARY kernels") and commit 42ea22e754ba ("ftrace: Add cond_resched() to ftrace_graph_set_hash()"). Fix it the same way by adding cond_resched() in ftrace_module_enable. Link: https://lore.kernel.org/aMQD9_lxYmphT-up@vova-pc Signed-off-by: Vladimir Riabchun <ferr.lambarginio@gmail.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'drivers/infiniband/hw/ionic/ionic_ibdev.c')
0 files changed, 0 insertions, 0 deletions