]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit33761e2350ee48272123b53d0f1814955ae6381d
tree5657e611aef30e1f994d018e23a3a8cffa38677e
parentd08bd4113072dfc39ff3fa325be90798c20083b6
[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