RE: [Patch bpf-next v8 01/16] skmsg: lock ingress_skb when purging

2021-03-31 Thread John Fastabend
Cong Wang wrote: > From: Cong Wang > > Currently we purge the ingress_skb queue only when psock > refcnt goes down to 0, so locking the queue is not necessary, > but in order to be called during ->close, we have to lock it > here. > > Cc: John Fastabend > Cc: Daniel Borkmann > Cc: Lorenz Bauer

[Patch bpf-next v8 01/16] skmsg: lock ingress_skb when purging

2021-03-30 Thread Cong Wang
From: Cong Wang Currently we purge the ingress_skb queue only when psock refcnt goes down to 0, so locking the queue is not necessary, but in order to be called during ->close, we have to lock it here. Cc: John Fastabend Cc: Daniel Borkmann Cc: Lorenz Bauer Acked-by: Jakub Sitnicki Signed-of