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

LNet dynamic control: lnet_dyn_add_ni() can't clean up failed NI in some cases

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.7.0
    • Lustre 2.7.0
    • None
    • 3
    • 16097

    Description

      In lnet_dyn_add_ni(), if lnet_startup_lndnis() fails, then NI on the local &net_head list is freed. But lnet_startup_lndnis(&net_head) can fail after list_del(&ni->ni_list), i.e. after the NI has been removed already from the &net_head. In this case I failed to see where the NI gets cleaned up and freed.

      Attachments

        Issue Links

          Activity

            [LU-5734] LNet dynamic control: lnet_dyn_add_ni() can't clean up failed NI in some cases

            Patch landed to Master.

            jlevi Jodi Levi (Inactive) added a comment - Patch landed to Master.

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12658/
            Subject: LU-5734 lnet: improve clean up code and API
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: c9501b87d0e06c36b180b80c08ca79b672f20c72

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12658/ Subject: LU-5734 lnet: improve clean up code and API Project: fs/lustre-release Branch: master Current Patch Set: Commit: c9501b87d0e06c36b180b80c08ca79b672f20c72

            Amir Shehata just send this patch to fix it:

            http://review.whamcloud.com/#/c/12658/

            Best Regards,
            Wang Shilong

            wangshilong Wang Shilong (Inactive) added a comment - Amir Shehata just send this patch to fix it: http://review.whamcloud.com/#/c/12658/ Best Regards, Wang Shilong

            Hi Andreas Dilger,

            Previously, the fix is together with my patch, Now Amir is giving a quick fix for LU-5568.
            I am going to separate enhanced patch after Amir's patch which should include this fix!

            Best Regards,
            Wang Shilong

            wangshilong Wang Shilong (Inactive) added a comment - Hi Andreas Dilger, Previously, the fix is together with my patch, Now Amir is giving a quick fix for LU-5568 . I am going to separate enhanced patch after Amir's patch which should include this fix! Best Regards, Wang Shilong

            Wang, are you working on a patch for this issue?

            adilger Andreas Dilger added a comment - Wang, are you working on a patch for this issue?

            Another related issue LU-5839, that should probably be fixed together.

            isaac Isaac Huang (Inactive) added a comment - Another related issue LU-5839 , that should probably be fixed together.

            Hi lsaac Huang,

            I will try to fix this issue together with LU-5568.

            Thanks very much for your comments and help!
            Best regards,
            Wang Shilong

            wangshilong Wang Shilong (Inactive) added a comment - Hi lsaac Huang, I will try to fix this issue together with LU-5568 . Thanks very much for your comments and help! Best regards, Wang Shilong

            It should be fixed together with LU-5568 - they are closely related.

            isaac Isaac Huang (Inactive) added a comment - It should be fixed together with LU-5568 - they are closely related.

            People

              ashehata Amir Shehata (Inactive)
              isaac Isaac Huang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: