]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
libceph: initialize mon_client con only once
authorSage Weil <sage@inktank.com>
Wed, 27 Jun 2012 19:24:34 +0000 (12:24 -0700)
committerSage Weil <sage@inktank.com>
Fri, 6 Jul 2012 04:14:38 +0000 (21:14 -0700)
commit735a72ef952d42a256f79ae3e6dc1c17a45c041b
treed092494049943c94f2e6711943b95e5b4fe10981
parentb7a9e5dd40f17a48a72f249b8bbc989b63bae5fd
libceph: initialize mon_client con only once

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