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

Remove dependency for lu_env structure in lu_cdebug_printer

Details

    • Improvement
    • Resolution: Low Priority
    • Minor
    • None
    • Lustre 2.4.0
    • 7402

    Description

      I was investigating the possibility of removing the need for an lu_env structure from ll_releasepage (as a result of LU-2622), and the first hurdle seems to be the fact that the debug infrastructure relies on this. In particular, it seems lu_cdebug_printer uses this structure to provide a temporary buffer so consecutive, non-newline terminated, calls to the print functions can be concatenated into a single message.

      Thus, unless the debug log infrastructure is reworked, I wont be able to remove the lu_env dependency. Since anything modifying the debug log code is likely to touch a lot of lines, I wanted to get some opinions on whether restructuring this would be advantageous.

      Is the debug logging infrastructure something that can/should be reworked to be more straight forward and simpler?

      Attachments

        Activity

          [LU-3033] Remove dependency for lu_env structure in lu_cdebug_printer

          Main problem with that was fixed by LU-3321 patch. 

          tappro Mikhail Pershin added a comment - Main problem with that was fixed by LU-3321 patch. 

          Just to chime in - I've also found this debug code to be problematic, and would prefer that it be simplified in some manner. IIRC, my complaint was about the size of buffer it allocated, but in any case it is messy.

          adilger Andreas Dilger added a comment - Just to chime in - I've also found this debug code to be problematic, and would prefer that it be simplified in some manner. IIRC, my complaint was about the size of buffer it allocated, but in any case it is messy.
          pjones Peter Jones added a comment -

          Mike

          Is this something that you can help with?

          Thanks

          Peter

          pjones Peter Jones added a comment - Mike Is this something that you can help with? Thanks Peter

          People

            tappro Mikhail Pershin
            prakash Prakash Surya (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: