[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1300047106-8545-1-git-send-email-dbaluta@ixiacom.com>
Date: Sun, 13 Mar 2011 22:11:46 +0200
From: dbaluta@...acom.com
To: davem@...emloft.net
Cc: eric.dumazet@...il.com, netdev@...r.kernel.org,
Daniel Baluta <daniel.baluta@...il.com>,
Daniel Baluta <dbaluta@...acom.com>
Subject: [PATCH] af_unix: update locking comment
From: Daniel Baluta <daniel.baluta@...il.com>
We latch our state using a spinlock not a r/w kind of lock.
Signed-off-by: Daniel Baluta <dbaluta@...acom.com>
---
net/unix/af_unix.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists