Thread (25 messages) 25 messages, 2 authors, 2016-06-30

Re: [PATCH net-next 19/19] rxrpc: Use RCU to access a peer's service connection tree

From: David Howells <dhowells@redhat.com>
Date: 2016-06-30 16:22:25
Also in: lkml

Peter Zijlstra [off-list ref] wrote:
quoted
+			if (conn->proto.index_key < k.index_key)
+				p = p->rb_left;
+			else if (conn->proto.index_key > k.index_key)
+				p = p->rb_right;
You still very much need rcu_dereference() for both left and right
pointers. As well as the first p load.
Bah...  Yes.  Good point.
quoted
+	rb_link_node(&conn->service_node, parent, pp);
You want rb_link_node_rcu() here.
Should there be an rb_replace_node_rcu() also?

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help