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

lprocfs_write_frac_u64_helper does not respect multiplier

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.6.0
    • Lustre 2.6.0
    • 3
    • 14132

    Description

      Working on LU-4856, I have made use of lprocfs_write_frac_u64_helper, which turns out to not work. Specifically, the mult arg is ignored because of this logic:

      units = 1;
      if (units)
      mult = mult < 0 ? -units : units;

      This led to sanity 101a setting the 64 bit converted max_cached_mb to 32 pages (not mb) - which hung in a way that may be interesting in it's own right.

      Attachments

        Activity

          [LU-5123] lprocfs_write_frac_u64_helper does not respect multiplier
          pjones Peter Jones added a comment -

          Landed for 2.6

          pjones Peter Jones added a comment - Landed for 2.6
          pjones Peter Jones added a comment -

          Thanks Steve.

          Emoly

          Could you please help with this patch?

          Thanks

          Peter

          pjones Peter Jones added a comment - Thanks Steve. Emoly Could you please help with this patch? Thanks Peter
          schamp Stephen Champion added a comment - http://review.whamcloud.com/#/c/10535/

          People

            emoly.liu Emoly Liu
            schamp Stephen Champion
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: