diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2025-01-08 09:04:39 +0000 |
|---|---|---|
| committer | Petr Pavlu <[email protected]> | 2025-03-10 10:54:44 +0000 |
| commit | 2ff49f8931be8bed53e65993fd1af68e3cd747cb (patch) | |
| tree | 421019b12fb15c4a0d7bfd922bd887cc185b624e /lib/timerqueue.c | |
| parent | module: Remove module_assert_mutex_or_preempt() from try_add_tainted_module(). (diff) | |
| download | kernel-2ff49f8931be8bed53e65993fd1af68e3cd747cb.tar.gz kernel-2ff49f8931be8bed53e65993fd1af68e3cd747cb.zip | |
module: Use RCU in find_symbol().
module_assert_mutex_or_preempt() is not needed in find_symbol(). The
function checks for RCU-sched or the module_mutex to be acquired. The
list_for_each_entry_rcu() below does the same check.
Remove module_assert_mutex_or_preempt() from try_add_tainted_module().
Use RCU protection to invoke find_symbol() and update callers.
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Petr Pavlu <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
