On Thu, Dec 21, 2017 at 11:01 AM, Cong Wang <xiyou.wangc...@gmail.com> wrote: > On Thu, Dec 21, 2017 at 1:03 AM, Jiri Pirko <j...@resnulli.us> wrote: >> >> >> But again, we don't we just free qdisc in call_rcu and avoid the >> barrier? > > > Non-sense again. Why qdisc code should be adjusted for your > miniq code? It is your own responsibility to take care of this shit. > Don't spread it out of minq.
Also, in case you believe call_rcu to free qdisc is queued after the call_rcu in miniq, you are wrong again: https://www.kernel.org/pub/linux/kernel/people/paulmck/Answers/RCU/RCUCBordering.html The rcu callbacks don't guarantee FIFO ordering.