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

Non atomic allocation under spin lock in qmt_glimpse_lock

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Minor
    • None
    • Lustre 2.8.0
    • None
    • 3
    • 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

            wc-triage WC Triage
            paf Patrick Farrell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: