Thread (31 messages) 31 messages, 4 authors, 2020-07-14

Re: [PATCH net-next v1 2/5] net: sched: Introduce helpers for qevent blocks

From: Petr Machata <hidden>
Date: 2020-07-09 00:13:56

Petr Machata [off-list ref] writes:
Cong Wang [off-list ref] writes:

I'll think about it some more. For now I will at least fix the lack of
locking.
I guess I could store smp_processor_id() that acquired the lock in
struct qdisc_skb_head. Do a trylock instead of lock, and on fail check
the stored value. I'll need to be careful about the race between
unsuccessful trylock and the test, and about making sure CPU ID doesn't
change after it is read. I'll probe this tomorrow.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help