From: Stephen Hemminger <shemminger@vyatta.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: [PATCH] AF_UNIX: update locking comment
Date: Thu, 18 Feb 2010 09:34:23 -0800 [thread overview]
Message-ID: <20100218093423.52165efd@nehalam> (raw)
The lock used in unix_state_lock() is a spin_lock not reader-writer.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
--- 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)
next reply other threads:[~2010-02-18 17:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-18 17:34 Stephen Hemminger [this message]
2010-02-18 22:12 ` [PATCH] AF_UNIX: update locking comment David Miller
-- strict thread matches above, loose matches on Subject: below --
2011-03-13 20:11 [PATCH] af_unix: " dbaluta
2011-03-14 22:26 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100218093423.52165efd@nehalam \
--to=shemminger@vyatta.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.