Skip to contentSkip to conversation

AF_UNIX: update locking comment

PATCH Applied Stephen Hemminger 2 participants 2 messages Feb 18, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 AF_UNIX: update locking comment

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

net/unix/af_unix.c +1 -1
@@ -144,7 +144,7 @@ static inline void unix_set_secdata(stru
 /*
  *  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)