public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch net-next] net: add RCU annotation to sk_dst_cache field
@ 2013-01-23  4:43 Cong Wang
  2013-01-23  4:50 ` Eric Dumazet
  0 siblings, 1 reply; 7+ messages in thread
From: Cong Wang @ 2013-01-23  4:43 UTC (permalink / raw)
  To: netdev; +Cc: David S. Miller, Cong Wang

From: Cong Wang <amwang@redhat.com>

sock->sk_dst_cache is protected by RCU.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>

---
diff --git a/include/net/sock.h b/include/net/sock.h
index 5a34e2f..c4b64c6 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -337,7 +337,7 @@ struct sock {
 #endif
 	unsigned long 		sk_flags;
 	struct dst_entry	*sk_rx_dst;
-	struct dst_entry	*sk_dst_cache;
+	struct dst_entry __rcu	*sk_dst_cache;
 	spinlock_t		sk_dst_lock;
 	atomic_t		sk_wmem_alloc;
 	atomic_t		sk_omem_alloc;

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

end of thread, other threads:[~2013-01-23  5:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-23  4:43 [Patch net-next] net: add RCU annotation to sk_dst_cache field Cong Wang
2013-01-23  4:50 ` Eric Dumazet
2013-01-23  4:58   ` Cong Wang
2013-01-23  5:06     ` Eric Dumazet
2013-01-23  5:30       ` Cong Wang
2013-01-23  5:34         ` Eric Dumazet
2013-01-23  5:36         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox