From: Allan Stephens Date: Tue, 15 Jul 2008 05:43:32 +0000 (-0700) Subject: tipc: Fix race condition that could cause accept() to fail X-Git-Tag: v2.6.27-rc1~969^2~137 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2da59918e26837f305131cfac9c0f1b3b42bb8ae;p=pandora-kernel.git tipc: Fix race condition that could cause accept() to fail This patch ensurs that accept() returns successfully even when the newly created socket is immediately disconnected by its peer. Previously, accept() would fail if it was unable to pass back the optional address info for the socket's peer before the socket became disconnected; TIPC now allows accept() to gather peer address information after disconnection. As a bonus, the revised code accesses the socket's port more efficiently, without the overhead incurred by a reference table lookup. Signed-off-by: Allan Stephens Signed-off-by: David S. Miller --- Reading git-diff-tree failed