libceph: initialize mon_client con only once
authorSage Weil <sage@inktank.com>
Wed, 27 Jun 2012 19:24:34 +0000 (12:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:38 +0000 (11:38 -0800)
commita5b0662bb814837139bb73249463e199528101b5
treedb88aff4007d86eeaf5c25b0e43e5dc5bd364562
parent638ba1765d03bdc3a972bfca69fd0a4a4eda717c
libceph: initialize mon_client con only once

(cherry picked from commit 735a72ef952d42a256f79ae3e6dc1c17a45c041b)

Do not re-initialize the con on every connection attempt.  When we
ceph_con_close, there may still be work queued on the socket (e.g., to
close it), and re-initializing will clobber the work_struct state.

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