Patchwork AF_UNIX: update locking comment

login
register
mail settings
Submitter stephen hemminger
Date Feb. 18, 2010, 5:34 p.m.
Message ID <20100218093423.52165efd@nehalam>
Download mbox | patch
Permalink /patch/45784/
State Accepted
Delegated to: David Miller
Headers show

Comments

stephen hemminger - Feb. 18, 2010, 5:34 p.m.
The lock used in unix_state_lock() is a spin_lock not reader-writer.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - Feb. 18, 2010, 10:12 p.m.
From: Stephen Hemminger <shemminger@vyatta.com>
Date: Thu, 18 Feb 2010 09:34:23 -0800

> The lock used in unix_state_lock() is a spin_lock not reader-writer.
> 
> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

--- a/net/unix/af_unix.c	2010-02-18 09:29:38.948513483 -0800
+++ b/net/unix/af_unix.c	2010-02-18 09:32:18.584389536 -0800
@@ -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)