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

Deadlock in ofd fiemap code leads to client eviction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.11.0
    • None
    • 3
    • 9223372036854775807

    Description

      When fiemap is used with FIEMAP_FLAG_SYNC flag OST locks all spare regions one by one. It may lead to a deadlock with another client which tries to get write lock on a region covering 2 spare regions.
      So scenario is following :
      1) client 1 calls fiemap, OST locks first spare region
      2) client 2 enqueues PW lock on whole file, it conflicts with first spare region
      3) OST tries to lock second spare region, but it conflicts with PW waiting lock.

      Attachments

        Activity

          People

            wc-triage WC Triage
            askulysh Andriy Skulysh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: