]> git.baikalelectronics.ru Git - kernel.git/commit
page_pool: remove spinlock in page_pool_refill_alloc_cache()
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 7 Jan 2022 09:00:42 +0000 (17:00 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 10 Jan 2022 00:45:27 +0000 (16:45 -0800)
commit8396610f12393e96ad25ac98521e61282bd23f3d
tree69c4c833f9654cc50f80a7bd382cc33ba672a626
parentc19c9f6b9a3334e2e8510d358fee7e1dceb5c9dc
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>
net/core/page_pool.c