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

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

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

            [LU-16796] Replace LASSERT_ATOMIC_* (atomic_t) with reference counters (refcount)
            maloo Maloo made changes -
            Remote Link New: This issue links to "Page (Whamcloud Community Wiki)" [ 43682 ]
            maloo Maloo made changes -
            Remote Link New: This issue links to "Page (Whamcloud Community Wiki)" [ 43275 ]
            maloo Maloo made changes -
            Remote Link New: This issue links to "Page (Whamcloud Community Wiki)" [ 42571 ]
            maloo Maloo made changes -
            Remote Link New: This issue links to "Page (Whamcloud Community Wiki)" [ 42121 ]
            maloo Maloo made changes -
            Remote Link New: This issue links to "Page (Whamcloud Community Wiki)" [ 41865 ]
            adilger Andreas Dilger made changes -
            Link Original: This issue is related to LU-18607 [ LU-18607 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-18607 [ LU-18607 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-18606 [ LU-18606 ]
            maloo Maloo made changes -
            Remote Link New: This issue links to "Page (Whamcloud Community Wiki)" [ 39902 ]
            arshad512 Arshad Hussain made changes -
            Labels New: lug23dd

            People

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

              Dates

                Created:
                Updated: