diff mbox

af_unix: update locking comment

Message ID 1300047106-8545-1-git-send-email-dbaluta@ixiacom.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Daniel Baluta March 13, 2011, 8:11 p.m. UTC
From: Daniel Baluta <daniel.baluta@gmail.com>

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

Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
---
 net/unix/af_unix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

David Miller March 14, 2011, 10:26 p.m. UTC | #1
From: dbaluta@ixiacom.com
Date: Sun, 13 Mar 2011 22:11:46 +0200

> We latch our state using a spinlock not a r/w kind of lock.
> 
> Signed-off-by: Daniel Baluta <dbaluta@ixiacom.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
diff mbox

Patch

diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index de87018..ef70615 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -1124,7 +1124,7 @@  restart:
 
 	/* 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