]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: remove client from client list before destorying
authorYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 14 Feb 2009 01:06:22 +0000 (17:06 -0800)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 14 Feb 2009 01:06:22 +0000 (17:06 -0800)
src/kernel/super.c

index ed33f35fad96e75cbb9ce3fb3260098d452c354d..9560c004184f753c5d345ad34a4ff36077424b5f 100644 (file)
@@ -673,6 +673,10 @@ static void ceph_destroy_client(struct ceph_client *client)
 {
        dout(10, "destroy_client %p\n", client);
 
+       spin_lock(&ceph_clients_list_lock);
+       list_del(&client->clients_all);
+       spin_unlock(&ceph_clients_list_lock);
+
        /* unmount */
        ceph_mdsc_stop(&client->mdsc);
        ceph_monc_stop(&client->monc);