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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:51:17 +0000 (08:51 -0800)
commita2d928ffc91d237f178d769943bc785f1a7f7435
tree2f1da2117dc112e62b334d38a9b2643ebc92a9e4
parent627e242990064e050cf09436c46d66ccf0f8a6b9
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>
(cherry picked from commit a53aab645c82f0146e35684b34692c69b5118121)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/mds_client.c