libceph: close socket directly from ceph_con_close()
authorSage Weil <sage@inktank.com>
Fri, 20 Jul 2012 23:45:49 +0000 (16:45 -0700)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:15:58 +0000 (18:15 -0700)
commitee76e0736db8455e3b11827d6899bd2a4e1d0584
treeef44731396059db4379b369f0315100c21638509
parent2e8cb10063820af7ed7638e3fd9013eee21266e7
libceph: close socket directly from ceph_con_close()

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>
net/ceph/messenger.c