mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
b9fb9ee07e
commit
663717f65c
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ static inline void unix_set_secdata(struct scm_cookie *scm, struct sk_buff *skb)
|
||||||
/*
|
/*
|
||||||
* SMP locking strategy:
|
* SMP locking strategy:
|
||||||
* hash table is protected with spinlock unix_table_lock
|
* 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)
|
static inline unsigned unix_hash_fold(__wsum n)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue