Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-20084

osp: fix kobject leak when LWP connect fails

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            hnishida Hiroshi Nishida
            hnishida Hiroshi Nishida
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: