From: Alex Elder Date: Sat, 8 Dec 2012 01:50:07 +0000 (-0600) Subject: libceph: socket can close in any connection state X-Git-Tag: v3.8-rc1~21^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bb21d68c535ad8be38e14a715632ae398b37ac1;p=pandora-kernel.git libceph: socket can close in any connection state A connection's socket can close for any reason, independent of the state of the connection (and without irrespective of the connection mutex). As a result, the connectino can be in pretty much any state at the time its socket is closed. Handle those other cases at the top of con_work(). Pull this whole block of code into a separate function to reduce the clutter. Signed-off-by: Alex Elder Reviewed-by: Sage Weil --- Reading git-diff-tree failed