mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
tracing: Switch to kvfree_rcu() API
Instead of invoking a synchronize_rcu() to free a pointer after a grace period we can directly make use of new API that does the same but in more efficient way. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Uladzislau Rezki (Sony) <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
This commit is contained in:
1 parent
1d83c3a20b
commit
a6ed2aee54
2 files changed
+2
-4
No files matched your search
@@ -138,8 +138,7 @@ static void osnoise_unregister_instance(struct trace_array *tr)
|
||||
if (!found)
|
||||
return;
|
||||
|
||||
synchronize_rcu();
|
||||
kfree(inst);
|
||||
kvfree_rcu(inst);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -1138,8 +1138,7 @@ int trace_probe_remove_file(struct trace_probe *tp,
|
||||
return -ENOENT;
|
||||
|
||||
list_del_rcu(&link->list);
|
||||
synchronize_rcu();
|
||||
kfree(link);
|
||||
kvfree_rcu(link);
|
||||
|
||||
if (list_empty(&tp->event->files))
|
||||
trace_probe_clear_flag(tp, TP_FLAG_TRACE);
|
||||
|
||||
Reference in new issue
Block a user