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

A released file lease cannot be taken again

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • Lustre 2.8.0
    • None
    • 3
    • 9223372036854775807

    Description

      Taking a lease, releasing it and then taking it again will fail.

      llapi_lease_get(fd, LL_LEASE_RDLCK);   -> returns 0
      llapi_lease_put(fd);                   -> returns LL_LEASE_RDLCK
      llapi_lease_check(fd)                  -> returns 0 = no lease
      llapi_lease_get(fd, LL_LEASE_RDLCK);   -> return -EBUSY
      

      http://review.whamcloud.com/13441 has a commented out reproducer. Change the "#if 0" to "#if 1" in swap_layout_test.c:test15().

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              fzago Frank Zago (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: