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

mdt_open_by_fid_lock() may return -EREMOTE without setting lock handle

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.7.0
    • Lustre 2.7.0
    • 3
    • 14974

    Description

      In mdt_open_by_fid_lock() if rr_fid2 designates a remote object then we return -EREMOTE without taking a lock. Later in mdt_intent_reint() this will crash:

             /* the open lock or the lock for cross-ref object should be                       
               * returned to the client */
              if (rc == -EREMOTE || mdt_get_disposition(rep, DISP_OPEN_LOCK)) {
                      LASSERT(lustre_handle_is_used(&lhc->mlh_reg_lh));
                      rep->lock_policy_res2 = 0;
                      rc = mdt_intent_lock_replace(info, lockp, lhc, flags);
                      RETURN(rc);
              }
      

      Attachments

        Issue Links

          Activity

            [LU-5370] mdt_open_by_fid_lock() may return -EREMOTE without setting lock handle
            donut-crowd Donut Crowd (Inactive) made changes -
            Remote Link Original: This issue links to "Page (HPDD Community Wiki)" [ 14740 ]
            donut-crowd Donut Crowd (Inactive) made changes -
            Remote Link Original: This issue links to "Page (HPDD Community Wiki)" [ 14601 ]
            sarah Sarah Liu made changes -
            Remote Link Original: This issue links to "Page (HPDD Community Wiki)" [ 14601 ] New: This issue links to "Page (HPDD Community Wiki)" [ 14601 ]
            sarah Sarah Liu made changes -
            Remote Link New: This issue links to "Page (HPDD Community Wiki)" [ 14740 ]
            sarah Sarah Liu made changes -
            Remote Link New: This issue links to "Page (HPDD Community Wiki)" [ 14601 ]
            pjones Peter Jones made changes -
            Link Original: This issue is related to LDEV-14 [ LDEV-14 ]
            pjones Peter Jones made changes -
            Link New: This issue is related to LDEV-13 [ LDEV-13 ]
            pjones Peter Jones made changes -
            Labels Original: fault lu_st mdt New: fault mdt
            pjones Peter Jones made changes -
            Link New: This issue is related to LDEV-14 [ LDEV-14 ]
            jlevi Jodi Levi (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: