File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ struct dlm_cluster {
80
80
unsigned int cl_new_rsb_count ;
81
81
unsigned int cl_recover_callbacks ;
82
82
char cl_cluster_name [DLM_LOCKSPACE_LEN ];
83
+
84
+ struct dlm_spaces * sps ;
85
+ struct dlm_comms * cms ;
83
86
};
84
87
85
88
static struct dlm_cluster * config_item_to_cluster (struct config_item * i )
@@ -410,6 +413,9 @@ static struct config_group *make_cluster(struct config_group *g,
410
413
if (!cl || !sps || !cms )
411
414
goto fail ;
412
415
416
+ cl -> sps = sps ;
417
+ cl -> cms = cms ;
418
+
413
419
config_group_init_type_name (& cl -> group , name , & cluster_type );
414
420
config_group_init_type_name (& sps -> ss_group , "spaces" , & spaces_type );
415
421
config_group_init_type_name (& cms -> cs_group , "comms" , & comms_type );
@@ -459,6 +465,9 @@ static void drop_cluster(struct config_group *g, struct config_item *i)
459
465
static void release_cluster (struct config_item * i )
460
466
{
461
467
struct dlm_cluster * cl = config_item_to_cluster (i );
468
+
469
+ kfree (cl -> sps );
470
+ kfree (cl -> cms );
462
471
kfree (cl );
463
472
}
464
473
You can’t perform that action at this time.
0 commit comments