[PATCH v1 05/21] j1939: add comments for locks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 net/can/j1939/j1939-priv.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/net/can/j1939/j1939-priv.h b/net/can/j1939/j1939-priv.h
index 8e0da24fd43c..d04f8c2d3658 100644
--- a/net/can/j1939/j1939-priv.h
+++ b/net/can/j1939/j1939-priv.h
@@ -81,8 +81,10 @@ struct j1939_priv {
 
 	unsigned int tp_max_packet_size;
 
-	struct list_head j1939_socks;
+	/* lock for j1939_socks list */
 	spinlock_t j1939_socks_lock;
+	struct list_head j1939_socks;
+
 	struct kref rx_kref;
 };
 
@@ -305,6 +307,7 @@ struct j1939_sock {
 	atomic_t skb_pending;
 	wait_queue_head_t waitq;
 
+	/* lock for the sk_session_queue list */
 	spinlock_t sk_session_queue_lock;
 	struct list_head sk_session_queue;
 };
-- 
2.20.1




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux