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

ll_update_lsm_md() may deadlock

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Lustre 2.12.0, Lustre 2.13.0
    • Fix Version/s: Lustre 2.14.0, Lustre 2.12.4
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      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

              People

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

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: