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

Lustre grants flock exclusive locks on two file descriptors for the same file

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.1.0
    • Lustre 2.1.0
    • None
    • 3
    • 22,660
    • 5058

    Description

      Lustre grants flock exclusive locks on two file descriptors for the same
      file in the same process. However, the second flock SHOULD fail.

      Fortunately, the VFS already has the correct behavior. And since we are
      already calling the flock_lock_file_wait() or posix_lock_file_wait() VFS
      calls, we just need to record that return code and return it in
      ll_file_lock().

      This patch was already landed on 1.8, needs to land on master.

      Attachments

        Activity

          [LU-104] Lustre grants flock exclusive locks on two file descriptors for the same file

          People

            green Oleg Drokin
            morrone Christopher Morrone (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: