[LU-3242] class_handle_hash() may return zero cookies Created: 29/Apr/13  Updated: 06/May/13  Resolved: 06/May/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: Lustre 2.4.0

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 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;
        }


 Comments   
Comment by John Hammond [ 29/Apr/13 ]

Please see http://review.whamcloud.com/6198.

Comment by Jodi Levi (Inactive) [ 06/May/13 ]

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

Generated at Sat Feb 10 01:32:12 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.