Whamcloud - gitweb
- delete fld targets during device shutdown
authortappro <tappro>
Mon, 16 Oct 2006 09:18:07 +0000 (09:18 +0000)
committertappro <tappro>
Mon, 16 Oct 2006 09:18:07 +0000 (09:18 +0000)
lustre/cmm/cmm_device.c

index 60a6cd2..3d28829 100644 (file)
@@ -229,6 +229,7 @@ static void cmm_device_shutdown(const struct lu_env *env,
         spin_lock(&cm->cmm_tgt_guard);
         list_for_each_entry_safe(mc, tmp, &cm->cmm_targets, mc_linkage) {
                 struct lu_device *ld_m = mdc2lu_dev(mc);
+                fld_client_del_target(cm->cmm_fld, mc->mc_num);
                 ld_m->ld_ops->ldo_process_config(env, ld_m, cfg);
         }
         spin_unlock(&cm->cmm_tgt_guard);