Skip to contentSkip to conversation

staging/lustre/ldlm: Unregister ldlm namespace from sysfs on free

PATCH New [email protected] 1 participant 1 message Jul 15, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging/lustre/ldlm: Unregister ldlm namespace from sysfs on free

From: Oleg Drokin <[email protected]>

ldlm_namespace_sysfs_unregister needs to be called ldlm_namespace_free_post so that we don't have this dangling object there after the namespace has disappeared.

---
 drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/lustre/lustre/ldlm/ldlm_resource.c +1 -0
index cdb6366..4bb3173 100644
@@ -939,6 +939,7 @@ void ldlm_namespace_free_post(struct ldlm_namespace *ns)
 	ldlm_pool_fini(&ns->ns_pool);
 
 	ldlm_namespace_debugfs_unregister(ns);
+	ldlm_namespace_sysfs_unregister(ns);
 	cfs_hash_putref(ns->ns_rs_hash);
 	/* Namespace \a ns should be not on list at this time, otherwise
 	 * this will cause issues related to using freed \a ns in poold
Signature · 1 line
2.1.0