[AF_UNIX]: Make socket locking much less confusing.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 31 May 2007 20:24:26 +0000 (13:24 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 4 Jun 2007 01:08:40 +0000 (18:08 -0700)
commit1c92b4e50ef926d1e26fcc056a520e4a7d12478c
tree5657e611aef30e1f994d018e23a3a8cffa38677e
parentc1a13ff57ab1ce52a0aae9984594dbfcfbaf68c0
[AF_UNIX]: Make socket locking much less confusing.

The unix_state_*() locking macros imply that there is some
rwlock kind of thing going on, but the implementation is
actually a spinlock which makes the code more confusing than
it needs to be.

So use plain unix_state_lock and unix_state_unlock.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/af_unix.h
net/unix/af_unix.c