From: Sage Weil Date: Mon, 2 Mar 2009 21:48:40 +0000 (-0800) Subject: kclient: remove old client_list cruft X-Git-Tag: v0.7~81^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3af9ad46ed8f8f7f92a605390df1e9fef93baec1;p=ceph.git kclient: remove old client_list cruft --- diff --git a/src/kernel/super.c b/src/kernel/super.c index 7e60e423cd8..a9adf27cb68 100644 --- a/src/kernel/super.c +++ b/src/kernel/super.c @@ -27,9 +27,6 @@ int ceph_debug_mask = 0xffffffff; int ceph_debug_console; int ceph_debug_super = -1; /* for this file */ -struct list_head ceph_clients; -spinlock_t ceph_clients_list_lock = SPIN_LOCK_UNLOCKED; - #define DOUT_MASK DOUT_MASK_SUPER #define DOUT_VAR ceph_debug_super #include "super.h" @@ -663,11 +660,6 @@ static void ceph_destroy_client(struct ceph_client *client) { dout(10, "destroy_client %p\n", client); - spin_lock(&ceph_clients_list_lock); - if (!list_empty(&client->clients_all)) - list_del(&client->clients_all); - spin_unlock(&ceph_clients_list_lock); - /* unmount */ ceph_mdsc_stop(&client->mdsc); ceph_monc_stop(&client->monc); @@ -1019,10 +1011,6 @@ static int ceph_get_sb(struct file_system_type *fs_type, dout(20, "get_sb got existing client %p\n", client); } else { dout(20, "get_sb using new client %p\n", client); - spin_lock(&ceph_clients_list_lock); - list_add(&client->clients_all, &ceph_clients); - spin_unlock(&ceph_clients_list_lock); - err = ceph_init_bdi(sb, client); if (err < 0) goto out_splat; @@ -1075,7 +1063,6 @@ static int __init init_ceph(void) int ret = 0; dout(1, "init_ceph\n"); - INIT_LIST_HEAD(&ceph_clients); #ifdef CONFIG_CEPH_BOOKKEEPER ceph_bookkeeper_init(); diff --git a/src/kernel/super.h b/src/kernel/super.h index 99022a24039..74609b37e29 100644 --- a/src/kernel/super.h +++ b/src/kernel/super.h @@ -118,7 +118,6 @@ struct ceph_client { struct workqueue_struct *trunc_wq; struct backing_dev_info backing_dev_info; - struct list_head clients_all; struct proc_dir_entry *proc_entry; };