From: Tristan Ye Date: Mon, 2 Aug 2010 02:00:26 +0000 (+0800) Subject: O2net: Disallow o2net accept connection request from itself. X-Git-Tag: v2.6.36-rc1~40^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=415cf32c9cdfcc60f34d0ac17f29634e941ba7d2;p=pandora-kernel.git O2net: Disallow o2net accept connection request from itself. Currently, o2net_accept_one() is allowed to accept a connection from listening node itself, such a fake connection will not be successfully established due to no handshake detected afterwards, and later end up with triggering connecting worker in a loop. We're going to fix this by treating such connection request as 'invalid', since we've got no chance of requesting connection from a node to itself in a OCFS2 cluster. The fix doesn't hurt user's scan for o2net-listener, it always gets a successful connection from userpace. Signed-off-by: Tristan Ye Acked-by: Sunil Mushran Signed-off-by: Joel Becker --- Reading git-diff-tree failed