diff options
| author | Uladzislau Rezki (Sony) <[email protected]> | 2023-02-01 15:08:07 +0000 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2023-02-03 00:28:07 +0000 |
| commit | 608723c41cd951fb32ade2f8371e61c270816175 (patch) | |
| tree | e5a2eefac1969b1987f9b17757bc985c63d40325 /lib/string.c | |
| parent | rcu/kvfree: Split ready for reclaim objects from a batch (diff) | |
| download | kernel-608723c41cd951fb32ade2f8371e61c270816175.tar.gz kernel-608723c41cd951fb32ade2f8371e61c270816175.zip | |
rcu/kvfree: Add kvfree_rcu_mightsleep() and kfree_rcu_mightsleep()
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) <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
