diff options
Diffstat (limited to 'net/ceph/ceph_common.c')
-rw-r--r-- | net/ceph/ceph_common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c index e65e6e4be38b..34b11ee8124e 100644 --- a/net/ceph/ceph_common.c +++ b/net/ceph/ceph_common.c | |||
@@ -606,11 +606,17 @@ static int __init init_ceph_lib(void) | |||
606 | if (ret < 0) | 606 | if (ret < 0) |
607 | goto out_crypto; | 607 | goto out_crypto; |
608 | 608 | ||
609 | ret = ceph_osdc_setup(); | ||
610 | if (ret < 0) | ||
611 | goto out_msgr; | ||
612 | |||
609 | pr_info("loaded (mon/osd proto %d/%d)\n", | 613 | pr_info("loaded (mon/osd proto %d/%d)\n", |
610 | CEPH_MONC_PROTOCOL, CEPH_OSDC_PROTOCOL); | 614 | CEPH_MONC_PROTOCOL, CEPH_OSDC_PROTOCOL); |
611 | 615 | ||
612 | return 0; | 616 | return 0; |
613 | 617 | ||
618 | out_msgr: | ||
619 | ceph_msgr_exit(); | ||
614 | out_crypto: | 620 | out_crypto: |
615 | ceph_crypto_shutdown(); | 621 | ceph_crypto_shutdown(); |
616 | out_debugfs: | 622 | out_debugfs: |
@@ -622,6 +628,7 @@ out: | |||
622 | static void __exit exit_ceph_lib(void) | 628 | static void __exit exit_ceph_lib(void) |
623 | { | 629 | { |
624 | dout("exit_ceph_lib\n"); | 630 | dout("exit_ceph_lib\n"); |
631 | ceph_osdc_cleanup(); | ||
625 | ceph_msgr_exit(); | 632 | ceph_msgr_exit(); |
626 | ceph_crypto_shutdown(); | 633 | ceph_crypto_shutdown(); |
627 | ceph_debugfs_cleanup(); | 634 | ceph_debugfs_cleanup(); |