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

lfs setstripe causes MDS DLM lock callback during create

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 9223372036854775807

    Description

      Running lfs setstripe on a file with open(O_LOV_DELAY_CREATE) results in the MDS sending a DLM lock callback to the client for the newly-created file when ioctl(LL_IOC_LOV_SETSTRIPE) is called. I believe (but am not positive) that the callback is on the MDS_INODELOCK_LAYOUT bit of the inode.

      It doesn't make sense for the MDS to grant this bit to the client when O_LOV_DELAY_CREATE is used, since the file does not have a layout, and it is very likely that the client will call ioctl(LL_IOC_LOV_SETSTRIPE) immediately thereafter.

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: