diff options
author | Zqiang <qiang1.zhang@intel.com> | 2023-04-18 14:27:02 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-05-10 02:26:21 +0200 |
commit | 6b706e5603c44ff0b6f43c2e26e0d590e1d265f8 (patch) | |
tree | 41a0f568dd67dda72a570b1bcaca139635e80dba /drivers/gpu/drm/amd/amdgpu/psp_v11_0.h | |
parent | rcu/kvfree: Make fill page cache start from krcp->nr_bkv_objs (diff) | |
download | linux-6b706e5603c44ff0b6f43c2e26e0d590e1d265f8.tar.xz linux-6b706e5603c44ff0b6f43c2e26e0d590e1d265f8.zip |
rcu/kvfree: Make drain_page_cache() take early return if cache is disabled
If the rcutree.rcu_min_cached_objs kernel boot parameter is set to zero,
then krcp->page_cache_work will never be triggered to fill page cache.
In addition, the put_cached_bnode() will not fill page cache. As a
result krcp->bkvcache will always be empty, so there is no need to acquire
krcp->lock to get page from krcp->bkvcache. This commit therefore makes
drain_page_cache() return immediately if the rcu_min_cached_objs is zero.
Signed-off-by: Zqiang <qiang1.zhang@intel.com>
Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/psp_v11_0.h')
0 files changed, 0 insertions, 0 deletions