Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
3
-
9223372036854775807
Description
lwp_setup() calls client_obd_setup() which creates the LDLM namespace via ldlm_namespace_new(). When lwp_obd_connect() subsequently fails, the out_dis error path calls class_disconnect() without first calling ldlm_namespace_free_prior().
This leaves LDLM_NS_STOPPING unset, so when client_obd_cleanup() later calls ldlm_namespace_free_post(), the pool recalc race can cause ldlm_namespace_sysfs_unregister() to hang and the namespace kobject to be leaked under /sys/fs/lustre/ldlm/namespaces/.
Same pattern as LU-20079 in client_connect_import(), but in lwp_obd_connect() — triggered by MDT mount failures rather than client mount failures.