netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* About ip6_dst_destroy()
@ 2019-04-27 23:56 Eric Dumazet
  2019-04-28  3:22 ` David Ahern
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Dumazet @ 2019-04-27 23:56 UTC (permalink / raw)
  To: David Ahern, Networking

David

I am staring at ip6_dst_destroy() and the last part makes really no sense to me.

How rcu_read_lock()/rcu_read_unnlock() can help in a writer side ???

Changlog of a68886a691804d3f6d479ebf6825480fbafb6a00 ("net/ipv6: Make from in rt6_info rcu protected")
does not make sense either.

<quote>
    There is a race window when a FIB entry is deleted and the 'from' on the
    pcpu route is dropped and the pcpu route hits a cookie check. Handle
    this race using rcu on from.
</quote>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-28 15:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-27 23:56 About ip6_dst_destroy() Eric Dumazet
2019-04-28  3:22 ` David Ahern
2019-04-28 14:57   ` Eric Dumazet
2019-04-28 15:10     ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).