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

zfs osd_xattr_list forgets to unlock a semaphore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      It looks like we are forgetting an unlock in lustre/osd-zfs/osd_xattr.c::osd_xattr_list

              down(&obj->oo_guard);
      
              rc = osd_sa_xattr_list(env, obj, lb);
              if (rc < 0)
                      GOTO(out, rc);
      ...
                      if (lb->lb_buf != NULL) {
                              if (counted + rc + 1 > lb->lb_len)
                                      RETURN(-ERANGE);
      ...
      out:
              up(&obj->oo_guard);
              RETURN(rc);
      

      Attachments

        Activity

          People

            wc-triage WC Triage
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: