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

Remove ldlm flag ldlm_{is,set,clear} macros

Details

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

    Description

      We have macros like ldlm_{is,set,clear}_#FLAG_NAME# for all of the ldlm flags.  I'm going to remove them and convert all usages to just using the flag bit names directly.

      They make it much harder to find all uses of the actual lock flags and we are entirely inconsistent on whether we use the macros or not.  And since we're always going to use the flag names for multi-flag uses, we can't convert 100% to macros anyway.

      Attachments

        Activity

          [LU-16565] Remove ldlm flag ldlm_{is,set,clear} macros

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/57543/
          Subject: LU-16565 quota: Remove ldlm is,set,clear macros
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 62eac36b7c9390f2696b3b29a990416ccfe29785

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/57543/ Subject: LU-16565 quota: Remove ldlm is,set,clear macros Project: fs/lustre-release Branch: master Current Patch Set: Commit: 62eac36b7c9390f2696b3b29a990416ccfe29785

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/57542/
          Subject: LU-16565 target: Remove ldlm is,set,clear macros
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 475a1ba0769c96c20024b62fc32e02064e534cec

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/57542/ Subject: LU-16565 target: Remove ldlm is,set,clear macros Project: fs/lustre-release Branch: master Current Patch Set: Commit: 475a1ba0769c96c20024b62fc32e02064e534cec

          Yes I agree it would be better to use the atomic bit operations instead.

          simmonsja James A Simmons added a comment - Yes I agree it would be better to use the atomic bit operations instead.
          timday Tim Day added a comment -

          After refreshing this, I wonder if I should be using the atomic bit operations instead i.e. set_bit, clear_bit, and so on.

          timday Tim Day added a comment - After refreshing this, I wonder if I should be using the atomic bit operations instead i.e. set_bit, clear_bit, and so on.

          "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57550
          Subject: LU-16565 ldlm: [3] Remove ldlm is,set,clear macros
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: d7af7113c0ff5f2065b07ee1295d91fdf331c660

          gerrit Gerrit Updater added a comment - "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57550 Subject: LU-16565 ldlm: [3] Remove ldlm is,set,clear macros Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: d7af7113c0ff5f2065b07ee1295d91fdf331c660

          "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57549
          Subject: LU-16565 ldlm: [2] Remove ldlm is,set,clear macros
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 4e7d2fea389bfc7f925ac79a693b7f976c1a1f69

          gerrit Gerrit Updater added a comment - "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57549 Subject: LU-16565 ldlm: [2] Remove ldlm is,set,clear macros Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 4e7d2fea389bfc7f925ac79a693b7f976c1a1f69

          "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57548
          Subject: LU-16565 ldlm: [1] Remove ldlm is,set,clear macros
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: d3699de9b2b46df3a4ab6fb9a4ae1066a62650ab

          gerrit Gerrit Updater added a comment - "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57548 Subject: LU-16565 ldlm: [1] Remove ldlm is,set,clear macros Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: d3699de9b2b46df3a4ab6fb9a4ae1066a62650ab

          "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57547
          Subject: LU-16565 mdc: Remove ldlm is,set,clear macros
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 319750223098327e30d7b7e8bf25afb85bbc7b54

          gerrit Gerrit Updater added a comment - "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57547 Subject: LU-16565 mdc: Remove ldlm is,set,clear macros Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 319750223098327e30d7b7e8bf25afb85bbc7b54

          "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57546
          Subject: LU-16565 llite: Remove ldlm is,set,clear macros
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: cc1f609e341f988ebc307f574768c347ec4af28d

          gerrit Gerrit Updater added a comment - "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57546 Subject: LU-16565 llite: Remove ldlm is,set,clear macros Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: cc1f609e341f988ebc307f574768c347ec4af28d

          "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57545
          Subject: LU-16565 mdt: Remove ldlm is,set,clear macros
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 6f4081093a7efc417de8038b3bd61ad066254b17

          gerrit Gerrit Updater added a comment - "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57545 Subject: LU-16565 mdt: Remove ldlm is,set,clear macros Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 6f4081093a7efc417de8038b3bd61ad066254b17

          "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57544
          Subject: LU-16565 osc: Remove ldlm is,set,clear macros
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 4ef61372cd8d05bfb46364bd54702d51ac15e72c

          gerrit Gerrit Updater added a comment - "Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57544 Subject: LU-16565 osc: Remove ldlm is,set,clear macros Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 4ef61372cd8d05bfb46364bd54702d51ac15e72c

          People

            paf0186 Patrick Farrell
            paf0186 Patrick Farrell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: