Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.10.0
    • None
    • 9223372036854775807

    Description

      Half of the OBD_NOTIFY_* flags are essentially useless but we still have code that used them. The useless ones are

      OBD_NOTIFY_CREATE
      OBD_NOTIFY_CONNECT
      OBD_NOTIFY_SYNC_NONBLOCK
      OBD_NOTIFY_SYNC
      OBD_NOTIFY_CONFIG
      
      1. Server side OBDs do not implement o_notify and so the OBD_NOTIFY_CONFIG notification in server_start_targets() is useless and can be removed.
      2. The data parameter of obd_notify() and obd_notify_observer() may be removed.
      3. lov_notify() may be simplified by assuming that watched is not NULL.
      4. The OBD_NOTIFY_CONNECT notification in lov_connect() is useless and can be removed.
      5. The OBD_NOTIFY_ACTIVE notification in lmv_connect_mdc() is useless and can be rremoved.
      6. lco_flags is never checked in llite and can be removed.
      7. enum config_flags can be removed.

      Attachments

        Activity

          [LU-8403] OBD_NOTIFY_* flags cleanup
          pjones Peter Jones added a comment -

          Landed for 2.10

          pjones Peter Jones added a comment - Landed for 2.10

          Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/24428/
          Subject: LU-8403 obd: remove unused data parameter from obd_notify()
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: f519ec213874cedc3a07f8a47d87eac3a6279a82

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/24428/ Subject: LU-8403 obd: remove unused data parameter from obd_notify() Project: fs/lustre-release Branch: master Current Patch Set: Commit: f519ec213874cedc3a07f8a47d87eac3a6279a82

          Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/21422/
          Subject: LU-8403 obd: remove OBD_NOTIFY_CONFIG
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 2a433d0d62dc51f2d79e6179662b950188ad6a2b

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/21422/ Subject: LU-8403 obd: remove OBD_NOTIFY_CONFIG Project: fs/lustre-release Branch: master Current Patch Set: Commit: 2a433d0d62dc51f2d79e6179662b950188ad6a2b

          Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/21421/
          Subject: LU-8403 obd: remove OBD_NOTIFY_SYNC

          {,_NONBLOCK}

          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 2789a4b0852a97a10eda6b3ffd6166f6d99d329f

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/21421/ Subject: LU-8403 obd: remove OBD_NOTIFY_SYNC {,_NONBLOCK} Project: fs/lustre-release Branch: master Current Patch Set: Commit: 2789a4b0852a97a10eda6b3ffd6166f6d99d329f

          John L. Hammond (john.hammond@intel.com) uploaded a new patch: https://review.whamcloud.com/24428
          Subject: LU-8403 obd: remove unused data parameter from obd_notify()
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 9010e6a48411c3cf71fd11ca2afd8dbd9d02a739

          gerrit Gerrit Updater added a comment - John L. Hammond (john.hammond@intel.com) uploaded a new patch: https://review.whamcloud.com/24428 Subject: LU-8403 obd: remove unused data parameter from obd_notify() Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 9010e6a48411c3cf71fd11ca2afd8dbd9d02a739

          Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/21420/
          Subject: LU-8403 obd: remove OBD_NOTIFY_CREATE
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 39bd8d0aa62d8f113e9fe732f686bdccdfeedf5f

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/21420/ Subject: LU-8403 obd: remove OBD_NOTIFY_CREATE Project: fs/lustre-release Branch: master Current Patch Set: Commit: 39bd8d0aa62d8f113e9fe732f686bdccdfeedf5f
          jhammond John Hammond added a comment - And http://review.whamcloud.com/#/c/21421/ . And http://review.whamcloud.com/#/c/21422/ .

          John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/21420
          Subject: LU-8403 obd: remove OBD_NOTIFY_CREATE
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 806c2deb78a4985ca607cdb4c9e89bd1a93ca6f8

          gerrit Gerrit Updater added a comment - John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/21420 Subject: LU-8403 obd: remove OBD_NOTIFY_CREATE Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 806c2deb78a4985ca607cdb4c9e89bd1a93ca6f8

          People

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

            Dates

              Created:
              Updated:
              Resolved: