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

osd_ldiskfs_write_record(): adding bh without locking off

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.17.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      osd_ldiskfs_write_record() tries to optimize writes to an already existing block taking no lock (which normally needed to allocate and initialize non-allocated block).
      the optimization is based on the observation that this function is used with non-sparse files mostly, but sometimes this is not true. in this case we still need to grab the semaphore otherwise we risk to use a non-initialized block (before memset(0) is called).

      Attachments

        Issue Links

          Activity

            People

              bzzz Alex Zhuravlev
              bzzz Alex Zhuravlev
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: