Details

    • 9223372036854775807

    Description

      Several of the OBD_CONNECT_* flags have outlived their usefulness and should just always assume to be set or unset so that affected code paths can be simplified.

      [10:23:19 AM] John Hammond: It seems like some of the OBD_CONNECT_* flags can be assumed to be set for all supported versions and then some. For example OBD_CONNECT_IBITS. Should we put together a list of such flags which can be required at connect time and then other code that check these flags can be simplified?
      [10:31:36 AM] Andreas Dilger: I wouldn't be against that
      [10:31:55 AM] John Hammond: OK, I'll open a ticket.
      [10:35:55 AM] Andreas Dilger: there are two ways that could be handled... either require that it be set and refuse clients that don't have it, or assume that the flag is set at the server and then eventually stop sending it from the client and deprecate it completely
      [10:38:25 AM] John Hammond: I was leaning towards the first. What do you suggest?
      [11:26:15 AM] Andreas Dilger: I'd be inclined toward the second. I don't see much value to keeping around flags forever that will always be set.

      Candidates for retirement include:

      OBD_CONNECT_IBITS
      OBD_CONNECT_ATTRFID
      OBD_CONNECT_NODEVOH
      OBD_CONNECT_CANCELSET
      OBD_CONNECT_REAL
      OBD_CONNECT_FID
      OBD_CONNECT_VBR
      OBD_CONNECT_LOV_V3
      OBD_CONNECT_FULL20
      

      There are probably others as well. Some archeology is needed to determine in which versions these flags were added or started to be ignored.

      Attachments

        Issue Links

          Activity

            [LU-8402] OBD_CONNECT_* flags retirement

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34027/
            Subject: LU-8402 ldlm: assume OBD_CONNECT_IBITS
            Project: fs/lustre-release
            Branch: b2_10
            Current Patch Set:
            Commit: 2bc39a18041e40821195ef445269b282a9ec8fdb

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34027/ Subject: LU-8402 ldlm: assume OBD_CONNECT_IBITS Project: fs/lustre-release Branch: b2_10 Current Patch Set: Commit: 2bc39a18041e40821195ef445269b282a9ec8fdb

            Hongchao Zhang (hongchao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34027
            Subject: LU-8402 ldlm: assume OBD_CONNECT_IBITS
            Project: fs/lustre-release
            Branch: b2_10
            Current Patch Set: 1
            Commit: 0acb1ab935fadf7712e50afc53dd67dc8778cdb1

            gerrit Gerrit Updater added a comment - Hongchao Zhang (hongchao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34027 Subject: LU-8402 ldlm: assume OBD_CONNECT_IBITS Project: fs/lustre-release Branch: b2_10 Current Patch Set: 1 Commit: 0acb1ab935fadf7712e50afc53dd67dc8778cdb1

            opening to add fix version and resolving again.

            jgmitter Joseph Gmitter (Inactive) added a comment - opening to add fix version and resolving again.
            jhammond John Hammond added a comment -

            Let's resolve this and a new issue can be opened when we retire more flags.

            jhammond John Hammond added a comment - Let's resolve this and a new issue can be opened when we retire more flags.
            pjones Peter Jones added a comment -

            Any more patches to come under this ticket or can it be marked as RESOLVED?

            pjones Peter Jones added a comment - Any more patches to come under this ticket or can it be marked as RESOLVED?

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30036/
            Subject: LU-8402 llite: simplify ll_inode_revalidate()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: a430c3376c6b08d2264d4e0787e5403445f1bb7a

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30036/ Subject: LU-8402 llite: simplify ll_inode_revalidate() Project: fs/lustre-release Branch: master Current Patch Set: Commit: a430c3376c6b08d2264d4e0787e5403445f1bb7a

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30010/
            Subject: LU-8402 llite: assume OBD_CONNECT_ATTRFID
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: deaef32d1fd60530f60c5d3e38d11ead8234ac05

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30010/ Subject: LU-8402 llite: assume OBD_CONNECT_ATTRFID Project: fs/lustre-release Branch: master Current Patch Set: Commit: deaef32d1fd60530f60c5d3e38d11ead8234ac05

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30009/
            Subject: LU-8402 ldlm: assume OBD_CONNECT_IBITS
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: c7a833830de691967081cd7a42199b924ea7efdc

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30009/ Subject: LU-8402 ldlm: assume OBD_CONNECT_IBITS Project: fs/lustre-release Branch: master Current Patch Set: Commit: c7a833830de691967081cd7a42199b924ea7efdc

            John L. Hammond (john.hammond@intel.com) uploaded a new patch: https://review.whamcloud.com/30036
            Subject: LU-8402 llite: simplify ll_inode_revalidate()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 35445f03afce03fd06ce269542f3a448fb20fc41

            gerrit Gerrit Updater added a comment - John L. Hammond (john.hammond@intel.com) uploaded a new patch: https://review.whamcloud.com/30036 Subject: LU-8402 llite: simplify ll_inode_revalidate() Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 35445f03afce03fd06ce269542f3a448fb20fc41

            John L. Hammond (john.hammond@intel.com) uploaded a new patch: https://review.whamcloud.com/30010
            Subject: LU-8402 llite: assume OBD_CONNECT_ATTRFID
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 5186087b35c0e973c7381a98800765236362565b

            gerrit Gerrit Updater added a comment - John L. Hammond (john.hammond@intel.com) uploaded a new patch: https://review.whamcloud.com/30010 Subject: LU-8402 llite: assume OBD_CONNECT_ATTRFID Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 5186087b35c0e973c7381a98800765236362565b

            People

              jhammond John Hammond
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: