Files
twx-linux/include/linux
Uladzislau Rezki (Sony) 1b199a17b7 rcu/kvfree: Add kvfree_rcu_mightsleep() and kfree_rcu_mightsleep()
[ Upstream commit 608723c41c ]

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 adds
kvfree_rcu_mightsleep() and kfree_rcu_mightsleep(), which will replace
the single-argument kvfree_rcu() and kfree_rcu(), respectively.

This commit enables a series of commits that switch from single-argument
kvfree_rcu() and kfree_rcu() to their _mightsleep() counterparts.  Once
all of these commits land, the single-argument versions will be removed.

Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Stable-dep-of: 511e64e13d ("can: gw: fix RCU/BH usage in cgw_create_job()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-18 08:20:35 +02:00
..
2024-07-05 09:14:50 +02:00
2024-12-14 19:51:34 +01:00
2024-04-10 16:19:07 +02:00
2024-04-10 16:18:55 +02:00
2025-03-13 12:50:47 +01:00
2024-06-16 13:39:27 +02:00
2025-04-10 14:31:55 +02:00
2025-02-01 18:23:59 +01:00
2025-04-10 14:31:49 +02:00
2024-10-17 15:11:06 +02:00