ceph: close old con before reopening on mds reconnect
authorSage Weil <sage@inktank.com>
Mon, 30 Jul 2012 23:21:17 +0000 (16:21 -0700)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:15:32 +0000 (18:15 -0700)
commita53aab645c82f0146e35684b34692c69b5118121
treec066e9d7a670af46a2282d88c4a8a51912a98c7c
parenta4107026976f06c9a6ce8cc84a763564ee39d901
ceph: close old con before reopening on mds reconnect

When we detect a mds session reset, close the old ceph_connection before
reopening it.  This ensures we clean up the old socket properly and keep
the ceph_connection state correct.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
fs/ceph/mds_client.c