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

handle missing crh in hsm_cdt_request_completed()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.5.0
    • Lustre 2.5.0
    • 3
    • 9944

    Description

      hsm_cdt_request_completed() only partially handles the case where a restore handle could not be found.

                      /* give back layout lock */
                      mutex_lock(&cdt->cdt_restore_lock);
                      crh = hsm_restore_hdl_find(cdt, &car->car_hai->hai_fid);
                      if (crh != NULL)
                              list_del(&crh->crh_list);
                      mutex_unlock(&cdt->cdt_restore_lock);
                      /* just give back layout lock, we keep
                       * the reference which is given back
                       * later with the lock for HSM flags */
                      if (!IS_ERR(obj))
                              mdt_object_unlock(mti, obj, &crh->crh_lh, 1);
                      if (crh != NULL)
                              OBD_SLAB_FREE_PTR(crh, mdt_hsm_cdt_kmem);
      

      Attachments

        Activity

          People

            jhammond John Hammond
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: