libceph: close socket directly from ceph_con_close()
authorSage Weil <sage@inktank.com>
Fri, 20 Jul 2012 23:45:49 +0000 (16:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:40 +0000 (11:38 -0800)
commit3b5a9ead0b4845aaa7e80fcd6166f2c6740a1c6f
treedf27875914d29620a7e921726b8d699267cfadf7
parent1c5b33b852ab372d4538821db998561d5e4d7212
libceph: close socket directly from ceph_con_close()

(cherry picked from commit ee76e0736db8455e3b11827d6899bd2a4e1d0584)

It is simpler to do this immediately, since we already hold the con mutex.
It also avoids the need to deal with a not-quite-CLOSED socket in con_work.

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