From: Lars Marowsky-Bree Date: Tue, 11 Aug 2009 21:18:23 +0000 (-0500) Subject: dlm: fix connection close handling X-Git-Tag: v2.6.32-rc1~646^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=063c4c99630c0b06afad080d2a18bda64172c1a2;p=pandora-kernel.git dlm: fix connection close handling Closing a connection to a node can create problems if there are outstanding messages for that node. The problems include dlm_send spinning attempting to reconnect, or BUG from tcp_connect_to_sock() attempting to use a partially closed connection. To cleanly close a connection, we now first attempt to send any pending messages, cancel any remaining workqueue work, and flag the connection as closed to avoid reconnect attempts. Signed-off-by: Lars Marowsky-Bree Signed-off-by: Christine Caulfield Signed-off-by: David Teigland --- Reading git-diff-tree failed