Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 663717f6 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

AF_UNIX: update locking comment



The lock used in unix_state_lock() is a spin_lock not reader-writer.

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b9fb9ee0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)