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

Incorrect return value in mdt_reint_unlink

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Lustre 2.12.0
    • Fix Version/s: Lustre 2.12.0
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      Added by recent landing of https://review.whamcloud.com/31425

              /* We will lock the child regardless it is local or remote. No harm. */
              mc = mdt_object_find(info->mti_env, info->mti_mdt, child_fid);
              if (IS_ERR(mc))
                      GOTO(unlock_parent, rc = PTR_ERR(mc));
      
              if (!cos_incompat) {
                      rc = mdt_object_striped(info, mc);
                      if (rc < 0)
                              GOTO(unlock_parent, rc = PTR_ERR(mc));
      

      this last PTR_ERR should clearly be just "rc".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                laisiyao Lai Siyao
                Reporter:
                green Oleg Drokin
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: