Message ID | 20241111-rcu_probe-v2-1-a091b59b58b6@debian.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v2] uprobes: Remove unnecessary RCU list traversal in filter_chain() | expand |
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index 4b52cb2ae6d620b2526de7e86291bdc137aa4f49..372fde678cefce72650b6c200ebea0093193ad6a 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c @@ -934,8 +934,7 @@ static bool filter_chain(struct uprobe *uprobe, struct mm_struct *mm) bool ret = false; down_read(&uprobe->consumer_rwsem); - list_for_each_entry_srcu(uc, &uprobe->consumers, cons_node, - srcu_read_lock_held(&uprobes_srcu)) { + list_for_each_entry(uc, &uprobe->consumers, cons_node) { ret = consumer_filter(uc, mm); if (ret) break;