From: Stephen Hemminger Date: Thu, 18 Feb 2010 22:12:06 +0000 (-0800) Subject: AF_UNIX: update locking comment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=663717f65c075eb4c6da7a123041295bd5295cc0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git AF_UNIX: update locking comment The lock used in unix_state_lock() is a spin_lock not reader-writer. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 9bc9b92bc099..3d9122e78f41 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -144,7 +144,7 @@ static inline void unix_set_secdata(struct scm_cookie *scm, struct sk_buff *skb) /* * SMP locking strategy: * hash table is protected with spinlock unix_table_lock - * each socket state is protected by separate rwlock. + * each socket state is protected by separate spin lock. */ static inline unsigned unix_hash_fold(__wsum n)