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

Replace LASSERT_ATOMIC_* (atomic_t) with reference counters (refcount)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • 3
    • 9223372036854775807

       

      For Example.

      struct ptlrpc_sec {      
      ....
      atomic_t ps_refcount;    
      };
      

      Which is called as...

      LASSERT_ATOMIC_ZERO(&sec->ps_refcount);

      Now becomes

      struct ptlrpc_sec {      
      ....
      struct kref ps_refcount;
      };
      

      and every thing should follow to support the above.

       

      Currently these are under active use:

      LASSERT_ATOMIC_GT
      LASSERT_ATOMIC_GT_LT
      LASSERT_ATOMIC_ZERO
      LASSERT_ATOMIC_POS

            arshad512 Arshad Hussain
            arshad512 Arshad Hussain
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: