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

doble semaphore unlock in loop_thread

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      smatch has highlighted this gem in loop_thread():

              /*
               * up sem, we are running
               */
              up(&lo->lo_sem);
      
      ... {BIG HONKING LOOP} ...
      out:
              up(&lo->lo_sem);
              return ret;
      

      I imagine when the loop terminates we don't care anymore, but still it just looks wrong and probably should be fixed?

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              green Oleg Drokin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: