diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2010-02-18 14:12:06 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-18 14:12:06 -0800 |
commit | 663717f65c075eb4c6da7a123041295bd5295cc0 (patch) | |
tree | 5613a3c05449ae2d36f6c70a7ebb4ce63e88f448 /net/unix | |
parent | b9fb9ee07e67fce0b7bfd517a48710465706c30a (diff) | |
download | kernel_samsung_crespo-663717f65c075eb4c6da7a123041295bd5295cc0.zip kernel_samsung_crespo-663717f65c075eb4c6da7a123041295bd5295cc0.tar.gz kernel_samsung_crespo-663717f65c075eb4c6da7a123041295bd5295cc0.tar.bz2 |
AF_UNIX: update locking comment
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>
Diffstat (limited to 'net/unix')
-rw-r--r-- | net/unix/af_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 9bc9b92..3d9122e 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) |