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

ldlm_resource::lr_lvb_data is protected by wrong lock

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.1.0
    • None
    • None
    • 3
    • 24,336
    • 5085

    Description

      I found lr_lvb_data is protected by resource lock (lock_res_and_lock) at some places, i.e:
      ldlm_server_completion_ast()
      lock_res_and_lock(lock);
      memcpy(lvb, lock->l_resource->lr_lvb_data,
      lock->l_resource->lr_lvb_len);
      unlock_res_and_lock(lock);

      but what I learnt from the code is, it should be protected by lr_lvb_sem.

      Attachments

        Activity

          People

            bobijam Zhenyu Xu
            liang Liang Zhen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: