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

Non atomic allocation under spin lock in qmt_glimpse_lock

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Lustre 2.8.0
    • Fix Version/s: None
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      In qmt_glimpse_lock:

      While the resource lock (a spin lock) is held, it does

      OBD_ALLOC_PTR(work);

      This allocation is not atomic, so it can potentially sleep.

      Sleeping with a spinlock held is not a good idea in general, and (per Andreas) it is specifically not allowed for GFP_NOFS allocations.

        Attachments

          Activity

            People

            • Assignee:
              wc-triage WC Triage
              Reporter:
              paf Patrick Farrell (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: