Details

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

    Description

      wake_up_all() is only needed when there are threads doing an exclusive wait.

      wake_up() will wake up all non-exclusive threads, and at most one exclusive thread.  When non-exclusive waits are used, it is sufficient and preferred to use wake_up() to  wake them up.

      wake_up_all() should be reserved for those cases where threads are waiting exclusively, and they all want to be woken up.  Keeping it for the purpose only improve code readability.

       

      Attachments

        Issue Links

          Activity

            [LU-14352] Only use wake_up_all when necessary
            pjones Peter Jones added a comment -

            Landed for 2.15

            pjones Peter Jones added a comment - Landed for 2.15

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41289/
            Subject: LU-14352 various: only use wake_up_all() on exclusive waitqs
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 1f4e9f0f4f483dc93cbecdc841740bc11ec59a73

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41289/ Subject: LU-14352 various: only use wake_up_all() on exclusive waitqs Project: fs/lustre-release Branch: master Current Patch Set: Commit: 1f4e9f0f4f483dc93cbecdc841740bc11ec59a73

            Neil Brown (neilb@suse.de) uploaded a new patch: https://review.whamcloud.com/41289
            Subject: LU-14352 various: only use wake_up_all() on exclusive waitqs
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 2187f483d7441d368c343e02b634fa6c498b97c9

            gerrit Gerrit Updater added a comment - Neil Brown (neilb@suse.de) uploaded a new patch: https://review.whamcloud.com/41289 Subject: LU-14352 various: only use wake_up_all() on exclusive waitqs Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 2187f483d7441d368c343e02b634fa6c498b97c9

            People

              neilb Neil Brown
              neilb Neil Brown
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: