Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.14.0, Lustre 2.12.4
    • Lustre 2.12.0, Lustre 2.13.0
    • None
    • 3
    • 9223372036854775807

    Description

      ll_update_lsm_md() down_write() if lli->lli_lsm_md is NULL, and tries to initialize it, but if a concurrent lookup initialized lli->lli_lsm_md after this check and before taking write lock, it will up_read(), so the write lock is not released, therefore subsequent lookup will deadlock on this.

      Attachments

        Issue Links

          Activity

            [LU-13121] ll_update_lsm_md() may deadlock

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37325/
            Subject: LU-13121 llite: fix deadlock in ll_update_lsm_md()
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set:
            Commit: ed1391adec4a10075a72b21c506293c6cf9ece95

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37325/ Subject: LU-13121 llite: fix deadlock in ll_update_lsm_md() Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: ed1391adec4a10075a72b21c506293c6cf9ece95

            Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37325
            Subject: LU-13121 llite: fix deadlock in ll_update_lsm_md()
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: e6b51d19800a73e709b6e9966c60303c9edcd8f7

            gerrit Gerrit Updater added a comment - Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37325 Subject: LU-13121 llite: fix deadlock in ll_update_lsm_md() Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: e6b51d19800a73e709b6e9966c60303c9edcd8f7
            pjones Peter Jones added a comment -

            Landed for 2.14

            pjones Peter Jones added a comment - Landed for 2.14

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37182/
            Subject: LU-13121 llite: fix deadlock in ll_update_lsm_md()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 3746550282c865deebb07bfd92bcb4d1dabdc675

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37182/ Subject: LU-13121 llite: fix deadlock in ll_update_lsm_md() Project: fs/lustre-release Branch: master Current Patch Set: Commit: 3746550282c865deebb07bfd92bcb4d1dabdc675

            Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37182
            Subject: LU-13121 llite: fix deadlock in ll_update_lsm_md()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: b6fe727cb5d2902b39964f77945110251177feda

            gerrit Gerrit Updater added a comment - Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37182 Subject: LU-13121 llite: fix deadlock in ll_update_lsm_md() Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: b6fe727cb5d2902b39964f77945110251177feda

            People

              laisiyao Lai Siyao
              laisiyao Lai Siyao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: