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

lli_trunc_sem can lead to a readlock

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.14.0
    • Lustre 2.13.0, Lustre 2.12.2
    • None
    • Any lustre client
    • 3
    • 9223372036854775807

    Description

      Neil Brown discovered during the linux lustre client work a potential read lock condition involving lli_trunc_sem. If you mmap a lustre file, then read into that mapped memory from the file they can shared the same mmap_sem which does is okay since they are down_read() calls. The read lock can happen if truncate is called in between memory mapping the file and reading into the that mapped memory from the file.

      Attachments

        Issue Links

          Activity

            People

              neilb Neil Brown
              simmonsja James A Simmons
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: