[LU-3033] Remove dependency for lu_env structure in lu_cdebug_printer Created: 26/Mar/13  Updated: 16/Jan/22  Resolved: 16/Jan/22

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Prakash Surya (Inactive) Assignee: Mikhail Pershin
Resolution: Low Priority Votes: 0
Labels: llnl

Rank (Obsolete): 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?



 Comments   
Comment by Peter Jones [ 27/Mar/13 ]

Mike

Is this something that you can help with?

Thanks

Peter

Comment by Andreas Dilger [ 27/Mar/13 ]

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.

Comment by Mikhail Pershin [ 16/Jan/22 ]

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

Generated at Sat Feb 10 01:30:23 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.