Commit cae16f2c authored by Uladzislau Rezki (Sony)'s avatar Uladzislau Rezki (Sony) Committed by Joel Fernandes (Google)
Browse files

tracing: Rename kvfree_rcu() to kvfree_rcu_mightsleep()



The kvfree_rcu() macro's single-argument form is deprecated.  Therefore
switch to the new kvfree_rcu_mightsleep() variant. The goal is to
avoid accidental use of the single-argument forms, which can introduce
functionality bugs in atomic contexts and latency bugs in non-atomic
contexts.

Cc: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: default avatarDaniel Bristot de Oliveira <bristot@kernel.org>
Acked-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Signed-off-by: default avatarUladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Signed-off-by: default avatarJoel Fernandes (Google) <joel@joelfernandes.org>
parent 09b2286a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ static void osnoise_unregister_instance(struct trace_array *tr)
	if (!found)
		return;

	kvfree_rcu(inst);
	kvfree_rcu_mightsleep(inst);
}

/*
+1 −1
Original line number Diff line number Diff line
@@ -1172,7 +1172,7 @@ int trace_probe_remove_file(struct trace_probe *tp,
		return -ENOENT;

	list_del_rcu(&link->list);
	kvfree_rcu(link);
	kvfree_rcu_mightsleep(link);

	if (list_empty(&tp->event->files))
		trace_probe_clear_flag(tp, TP_FLAG_TRACE);