From: Daniel Baluta Date: Mon, 14 Mar 2011 22:25:33 +0000 (-0700) Subject: af_unix: update locking comment X-Git-Tag: v2.6.39-rc1~468^2~19^2~11 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=e5537bfc98f01561fbdfbd8a78f0dc3e2360491d;p=~shefty%2Frdma-dev.git af_unix: update locking comment We latch our state using a spinlock not a r/w kind of lock. Signed-off-by: Daniel Baluta Signed-off-by: David S. Miller --- diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 437a99e560e..b213ce668c9 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