summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorUladzislau Rezki (Sony) <urezki@gmail.com>2021-04-28 15:44:22 +0200
committerPaul E. McKenney <paulmck@kernel.org>2021-05-11 01:00:48 +0200
commitd8628f35bae0d0b1f06ca32fa57de76a7055e731 (patch)
tree0503aceae12f5bc0c2e479a6666fea7081dd0d7b /usr
parentkvfree_rcu: Use kfree_rcu_monitor() instead of open-coded variant (diff)
downloadlinux-d8628f35bae0d0b1f06ca32fa57de76a7055e731.tar.xz
linux-d8628f35bae0d0b1f06ca32fa57de76a7055e731.zip
kvfree_rcu: Fix comments according to current code
The kvfree_rcu() function now defers allocations in the common case due to the fact that there is no lockless access to the memory-allocator caches/pools. In addition, in CONFIG_PREEMPT_NONE=y and in CONFIG_PREEMPT_VOLUNTARY=y kernels, there is no reliable way to determine if spinlocks are held. As a result, allocation is deferred in the common case, and the two-argument form of kvfree_rcu() thus uses the "channel 3" queue through all the rcu_head structures. This channel is called referred to as the emergency case in comments, and these comments are now obsolete. This commit therefore updates these comments to reflect the new common-case nature of such emergencies. Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions