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

Optimize open of known negative dentry

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.9.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      While working with Al Viro on some corner cases in atomic open, I noticed that we are doing a lot more work than necessary there.

      If we were called with a negative dentry - that means just now we revalidated that dentry so there's no point in contacting MDS to open that file (unless it's a create request), we can just return ENOENT and be done with it which speeds up 99.9% of all usecases and the remaining 0.15 where it's a valid race, we just resolve it the other way as is perfectly fine for us to do.

      Attachments

        Activity

          People

            green Oleg Drokin
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: