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

Truncate should revoke lease lock

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Critical Critical
    • Lustre 2.12.0
    • Lustre 2.11.0, Lustre 2.10.5
    • None
    • 9223372036854775807

      Lustre lease lock is usually used to 'stabilize' file data so that it won't be accessed by any entities while certain operations are in progress. Open lock is used on the MDT side for this purpose.

      However, truncate will change file data but it didn't revoke lease lock. We should grab mot_open_sem and check mot_lease_count to see if there exists any pending lease on the file. If lease exists, it should be broken.

            yujian Jian Yu
            jay Jinshan Xiong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: