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

lockless IO does not update inode timestamps

    XMLWordPrintable

Details

    • 3
    • 10036

    Description

      In osc_io_read_start() and osc_io_write_start() if the lockless IO bit is set in the osc_io then the inode timestamps are not updated by the IO. Is there any reason for this?

      In osc_io_write_start() we have the following unnecessary attr get before we set the m- and c-times?

                      result = cl_object_attr_get(env, obj, attr);
                      if (result == 0) {
      			attr->cat_mtime = attr->cat_ctime =
                                      LTIME_S(CFS_CURRENT_TIME);
                              result = cl_object_attr_set(env, obj, attr,
                                                          CAT_MTIME | CAT_CTIME);
                      }
      

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: