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

Potential infinite loop in push target resize code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • Lustre 2.14.0
    • None
    • None
    • 3
    • 9223372036854775807

      int lnet_push_target_resize(void)
      {
      ...
              int nnis = the_lnet.ln_push_target_nnis;
      ...
      again:
      ...
              if (nnis < the_lnet.ln_push_target_nnis)
                      goto again;
      

      Looks like an infinite loop if we hit the condition for the "goto again" since we don't update the local nnis variable.

            hornc Chris Horn
            hornc Chris Horn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: