Skip to content
Commit 7dccd5fa authored by Qingfang DENG's avatar Qingfang DENG Committed by Greg Kroah-Hartman
Browse files

net: page_pool: use in_softirq() instead



[ Upstream commit 542bcea4 ]

We use BH context only for synchronization, so we don't care if it's
actually serving softirq or not.

As a side node, in case of threaded NAPI, in_serving_softirq() will
return false because it's in process context with BH off, making
page_pool_recycle_in_cache() unreachable.

Signed-off-by: default avatarQingfang DENG <qingfang.deng@siflower.com.cn>
Tested-by: default avatarFelix Fietkau <nbd@nbd.name>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: 368d3cb4 ("page_pool: fix inconsistency for page_pool_ring_[un]lock()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent cd3c5e4e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment