Skip to content
Commit 542bcea4 authored by Qingfang DENG's avatar Qingfang DENG Committed by David S. Miller
Browse files

net: page_pool: use in_softirq() instead



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>
parent 637bc8f0
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