diff options
author | 2020-05-25 23:47:46 +0200 | |
---|---|---|
committer | 2020-06-29 11:59:25 -0700 | |
commit | 4d2919411867848fab78c7cb13139e17ad8b85bc (patch) | |
tree | b4d1045ad548eecabdc041cfa4d6657cf6397eed /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rcu/tree: Keep kfree_rcu() awake during lock contention (diff) | |
download | wireguard-linux-4d2919411867848fab78c7cb13139e17ad8b85bc.tar.xz wireguard-linux-4d2919411867848fab78c7cb13139e17ad8b85bc.zip |
rcu/tree: Skip entry into the page allocator for PREEMPT_RT
To keep the kfree_rcu() code working in purely atomic sections on RT,
such as non-threaded IRQ handlers and raw spinlock sections, avoid
calling into the page allocator which uses sleeping locks on RT.
In fact, even if the caller is preemptible, the kfree_rcu() code is
not, as the krcp->lock is a raw spinlock.
Calling into the page allocator is optional and avoiding it should be
Ok, especially with the page pre-allocation support in future patches.
Such pre-allocation would further avoid the a need for a dynamically
allocated page in the first place.
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Uladzislau Rezki <urezki@gmail.com>
Co-developed-by: Uladzislau Rezki <urezki@gmail.com>
Signed-off-by: Uladzislau Rezki <urezki@gmail.com>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions