[LU-1298] lustre needs to be built with #undef LIBCFS_DEBUG occasionally Created: 10/Apr/12 Updated: 06/Nov/13 Resolved: 06/Nov/13 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.0.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Bruce Korb (Inactive) | Assignee: | WC Triage |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Build. |
||
| Severity: | 3 |
| Rank (Obsolete): | 10495 |
| Description |
|
When LIBCFS_DEBUG is not defined, neither will be ldlm_lock_debug. #ifdef LIBCFS_DEBUG
10beeaac (nikita 2008-10-18 15:13:21 +0000 927) # define ldlm_lock_debuf(cdls, level, lock, file, func, line, fmt, a...) \ |
| Comments |
| Comment by Bruce Korb (Inactive) [ 10/Apr/12 ] |
|
Hmmm. That's a very clever program, that Jira. That enumeration in the description is actually a quote of a series of "#define" statements, not an enumeration. |
| Comment by Oleg Drokin [ 10/Apr/12 ] |
|
Please submit a patch. Also there are more problems with not having LIBCFS_DEBUG not defined that that. There are still some lasserts that execute important code I think. So i nshort running with debug compiled out is not supported ATM and not something we would recommend |
| Comment by Bruce Korb (Inactive) [ 10/Apr/12 ] |
|
I had guessed that there might be more issues than that. I'm buried in trying to understand ldlm locking on the 1.8 tree so I can cut down lr_lock hold times. (Heart beats are going missing....) So this is a heads up, patch will/may come when I have the right round tuit. So, clearly building with LIBCFS_DEBUG not defined cannot be supported at the moment, but getting it to compile ought not be a particularly difficult thing to accomplish. Worry over side effects within asserts later. |
| Comment by Bruce Korb (Inactive) [ 10/Apr/12 ] |
|
Oh, one other detail: unless there is a program put in place to compile the thing once in a while, it'd be a waste of time to fix it. It would just atrophy. |
| Comment by Andreas Dilger [ 06/Nov/13 ] |
|
I don't think this is a priority. Can be reopened if someone wants to work on this. |