projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9fb9ee
)
AF_UNIX: update locking comment
author
Stephen Hemminger
<shemminger@vyatta.com>
Thu, 18 Feb 2010 22:12:06 +0000
(14:12 -0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 18 Feb 2010 22:12:06 +0000
(14:12 -0800)
The lock used in unix_state_lock() is a spin_lock not reader-writer.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c
patch
|
blob
|
blame
|
history
diff --git
a/net/unix/af_unix.c
b/net/unix/af_unix.c
index 9bc9b92bc099b65527813494eb833a4178c4e4bf..3d9122e78f41736c7e654cfe7f2482284cdd1dca 100644
(file)
--- 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
rw
lock.
+ * each socket state is protected by separate
spin
lock.
*/
static inline unsigned unix_hash_fold(__wsum n)