diff options
| author | Yunsheng Lin <linyunsheng@huawei.com> | 2022-01-07 17:00:42 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-09 16:45:27 -0800 |
| commit | 07b17f0f7485bcbc7902cf6f56a89f5b716344bd (patch) | |
| tree | 69c4c833f9654cc50f80a7bd382cc33ba672a626 /net/switchdev/switchdev.c | |
| parent | 6738fc77ffa2575f38b88d85583450184d59ed94 (diff) | |
page_pool: remove spinlock in page_pool_refill_alloc_cache()
As page_pool_refill_alloc_cache() is only called by
__page_pool_get_cached(), which assumes non-concurrent access
as suggested by the comment in __page_pool_get_cached(), and
ptr_ring allows concurrent access between consumer and producer,
so remove the spinlock in page_pool_refill_alloc_cache().
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Link: https://lore.kernel.org/r/20220107090042.13605-1-linyunsheng@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
