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

Deadlock in ofd fiemap code leads to client eviction

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

          [LU-9543] Deadlock in ofd fiemap code leads to client eviction
          pjones Peter Jones added a comment -

          Landed for 2.11

          pjones Peter Jones added a comment - Landed for 2.11

          Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/27224/
          Subject: LU-9543 ofd: fiemap deadlock
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 4eac5c85d3a4ddda5833af2f15cd8d614d1e3996

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/27224/ Subject: LU-9543 ofd: fiemap deadlock Project: fs/lustre-release Branch: master Current Patch Set: Commit: 4eac5c85d3a4ddda5833af2f15cd8d614d1e3996

          Andriy Skulysh (andriy.skulysh@seagate.com) uploaded a new patch: https://review.whamcloud.com/27224
          Subject: LU-9543 ofd: fiemap deadlock
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 4e95ce002d560ac28badcb11c6e05dfdf1b63d01

          gerrit Gerrit Updater added a comment - Andriy Skulysh (andriy.skulysh@seagate.com) uploaded a new patch: https://review.whamcloud.com/27224 Subject: LU-9543 ofd: fiemap deadlock Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 4e95ce002d560ac28badcb11c6e05dfdf1b63d01

          People

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

            Dates

              Created:
              Updated:
              Resolved: