pfifo_fast: drop unneeded additional lock on dequeue
After the previous patch, for NOLOCK qdiscs, q->seqlock is always held when the dequeue() is invoked, we can drop any additional locking to protect such operation. Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
96009c7d50
commit
021a17ed79
@@ -97,6 +97,11 @@ static inline bool skb_array_empty_any(struct skb_array *a)
|
||||
return ptr_ring_empty_any(&a->ring);
|
||||
}
|
||||
|
||||
static inline struct sk_buff *__skb_array_consume(struct skb_array *a)
|
||||
{
|
||||
return __ptr_ring_consume(&a->ring);
|
||||
}
|
||||
|
||||
static inline struct sk_buff *skb_array_consume(struct skb_array *a)
|
||||
{
|
||||
return ptr_ring_consume(&a->ring);
|
||||
|
Reference in New Issue
Block a user