Skip to content
Snippets Groups Projects
Commit e5537bfc authored by Daniel Baluta's avatar Daniel Baluta Committed by David S. Miller
Browse files

af_unix: update locking comment


We latch our state using a spinlock not a r/w kind of lock.

Signed-off-by: default avatarDaniel Baluta <dbaluta@ixiacom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 468c3f92
Branches
Tags
No related merge requests found
......@@ -1124,7 +1124,7 @@ static int unix_stream_connect(struct socket *sock, struct sockaddr *uaddr,
/* Latch our state.
It is tricky place. We need to grab write lock and cannot
It is tricky place. We need to grab our state lock and cannot
drop lock on peer. It is dangerous because deadlock is
possible. Connect to self case and simultaneous
attempt to connect are eliminated by checking socket
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment