diff options
author | Uladzislau Rezki (Sony) <urezki@gmail.com> | 2023-02-01 18:09:54 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-05-10 03:26:20 +0300 |
commit | 7e3f926bf4538cb4988b3e3f8bc1cb4a603b2ef6 (patch) | |
tree | 9cb6cc91238eae50f91ec626afbeb6b86c43b4e7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ac9a78681b921877518763ba0e89202254349d1b (diff) | |
download | linux-7e3f926bf4538cb4988b3e3f8bc1cb4a603b2ef6.tar.xz |
rcu/kvfree: Eliminate k[v]free_rcu() single argument macro
The kvfree_rcu() and kfree_rcu() APIs are hazardous in that if you forget
the second argument, it works, but might sleep. This sleeping can be a
correctness bug from atomic contexts, and even in non-atomic contexts it
might introduce unacceptable latencies. This commit therefore removes the
single-argument kvfree_rcu() and kfree_rcu() macros. Code that would have
previously used these single-argument kvfree_rcu() and kfree_rcu() macros
should instead use kvfree_rcu_mightsleep() or kfree_rcu_mightsleep().
[ paulmck: Apply Joel Fernandes feedback. ]
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions