libceph: fix fault locking; close socket on lossy fault
authorSage Weil <sage@inktank.com>
Fri, 20 Jul 2012 22:22:53 +0000 (15:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:40 +0000 (11:38 -0800)
commitda6a81eb5a2671f12551953d1843a0f53416d185
tree7e9c02adeba67b0bb55e103dd68517734f6dec3a
parented447f04ee3240371aa8a199588107fd521240d3
libceph: fix fault locking; close socket on lossy fault

(cherry picked from commit 3b5ede07b55b52c3be27749d183d87257d032065)

If we fault on a lossy connection, we should still close the socket
immediately, and do so under the con mutex.

We should also take the con mutex before printing out the state bits in
the debug output.

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/messenger.c