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

A not locked mutex can be unlocked in ll_file_open()

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.4.1, Lustre 2.5.0
    • None
    • None
    • 3
    • 7653

    Description

      In case of memory pressure a not locked mutex can be unlocked in function ll_file_open(). This is not allowed and subsequent behavior is not defined.

      /***

      • mutex_unlock - release the mutex
      • @lock: the mutex to be released
      • Unlock a mutex that has been locked by this task previously.
      • This function must not be used in interrupt context. Unlocking
      • of a not locked mutex is not allowed.
      • This function is similar to (but not equivalent to) up().
        */

      Attachments

        Activity

          [LU-3157] A not locked mutex can be unlocked in ll_file_open()
          dmiter Dmitry Eremin (Inactive) added a comment - Patch set is http://review.whamcloud.com/6028

          People

            dmiter Dmitry Eremin (Inactive)
            dmiter Dmitry Eremin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: