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

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

    XMLWordPrintable

Details

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

    Description

       

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: