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

osd_ldiskfs_write_record(): adding bh without locking off

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 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

        Activity

          People

            wc-triage WC Triage
            bzzz Alex Zhuravlev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: