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

class_handle_hash() may return zero cookies

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.4.0
    • Lustre 2.4.0
    • None
    • 3
    • 7964

    Description

      In class_handle_hash() if a cookie of zero is really so dangerous then perhaps it shouldn't be used.

              h->h_cookie = handle_base;
              if (unlikely(handle_base == 0)) {
                      /* 
                       * Cookie of zero is "dangerous", because in many places it's
                       * assumed that 0 means "unassigned" handle, not bound to any
                       * object.
                       */
                      CWARN("The universe has been exhausted: cookie wrap-around.\n");
                      handle_base += HANDLE_INCR;
              }
      

      Attachments

        Activity

          [LU-3242] class_handle_hash() may return zero cookies

          If more work is needed please let me know and I will reopen this ticket.

          jlevi Jodi Levi (Inactive) added a comment - If more work is needed please let me know and I will reopen this ticket.
          jhammond John Hammond added a comment - Please see http://review.whamcloud.com/6198 .

          People

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

            Dates

              Created:
              Updated:
              Resolved: