<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:33:49 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-17242] Clean up and Improve Lustre Debugging</title>
                <link>https://jira.whamcloud.com/browse/LU-17242</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Some parts of Lustre debugging have been superseded by newer kernel features (such as CFS_CHECK_STACK) and should be removed.&lt;/p&gt;

&lt;p&gt;Certain subsystems stack custom macros on-top of Lustre&apos;s already custom debugging. Those should be simplified if possible.&lt;/p&gt;

&lt;p&gt;Other subsystems use low-level debugging functions such as libcfs_debug_msg. These should use the higher level macros. That way, the underlying debugging implementation can more easily be swapped out.&lt;/p&gt;</description>
                <environment></environment>
        <key id="78657">LU-17242</key>
            <summary>Clean up and Improve Lustre Debugging</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="timday">Tim Day</assignee>
                                    <reporter username="timday">Tim Day</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Oct 2023 02:58:20 +0000</created>
                <updated>Sun, 4 Feb 2024 08:31:32 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="390991" author="gerrit" created="Mon, 30 Oct 2023 02:59:42 +0000"  >&lt;p&gt;&quot;Timothy Day &amp;lt;timday@amazon.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52883&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52883&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17242&quot; title=&quot;Clean up and Improve Lustre Debugging&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17242&quot;&gt;LU-17242&lt;/a&gt; debug: remove CFS_CHECK_STACK&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0d01390b5c371e76b315d38ff5213078057317da&lt;/p&gt;</comment>
                            <comment id="391138" author="gerrit" created="Tue, 31 Oct 2023 04:38:00 +0000"  >&lt;p&gt;&quot;Timothy Day &amp;lt;timday@amazon.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52897&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52897&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17242&quot; title=&quot;Clean up and Improve Lustre Debugging&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17242&quot;&gt;LU-17242&lt;/a&gt; ptlrpc: refactor DEBUG_REQ to use CDEBUG&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 16368c2dbe8d3b095f43701237eed490e5a93c6d&lt;/p&gt;</comment>
                            <comment id="391442" author="gerrit" created="Thu, 2 Nov 2023 04:43:09 +0000"  >&lt;p&gt;&quot;Timothy Day &amp;lt;timday@amazon.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52946&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52946&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17242&quot; title=&quot;Clean up and Improve Lustre Debugging&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17242&quot;&gt;LU-17242&lt;/a&gt; debug: CDEBUG performance testing&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 00918c7a9402599e1ffd56b613ddf5ec67cc421d&lt;/p&gt;</comment>
                            <comment id="391813" author="adilger" created="Sun, 5 Nov 2023 03:28:50 +0000"  >&lt;p&gt;What would be incredibly useful for debugging is if there was some way to get some additional information printed with the kernel stack trace, such as which MDT/OST target a thread was working on, maybe if it is holding any DLM locks, etc.&lt;/p&gt;

&lt;p&gt;One option would be to have some reserved fields in the thread-local storage or &lt;tt&gt;lu_env&lt;/tt&gt; that holds pointers to the OBD device (or just the name), pointers to the DLM lock(s), etc. and then the &lt;tt&gt;LASSERT()&lt;/tt&gt; or &lt;tt&gt;lbug_with_loc()&lt;/tt&gt; looks up this information and prints it before triggering &lt;tt&gt;panic()&lt;/tt&gt; or going to sleep.  The fields in the thread-local area would need to be &quot;well defined&quot; so that they do not depend on the thread context, and they should always contain valid pointers (e.g. set when a DLM lock is acquired, NULL when the lock is released, or NULL when a server thread stops processing an RPC or when a client thread exits OSC/LOV/MDC/LMV).&lt;/p&gt;

&lt;p&gt;It would also be useful on the server to print in the stack trace when the thread has a journal transaction open, and potentially this could also be submitted to the upstream kernel to print &lt;tt&gt;current-&amp;gt;journal_info&lt;/tt&gt; as part of the stack trace?  For now, this could at least be printed by &lt;tt&gt;libcfs_call_trace()&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;It might be too messy to set/clear a field whenever a mutex/semaphore is held, &lt;/p&gt;

&lt;p&gt;Thoughts?&lt;/p&gt;</comment>
                            <comment id="391866" author="JIRAUSER18433" created="Mon, 6 Nov 2023 03:47:04 +0000"  >&lt;p&gt;Seems useful. I think we could register a custom panic handler. I see upstream drivers (like drivers/net/ipa/ipa_smp2p.c) doing something like that. We could avoid extending custom Lustre debugging and it should work on every panic. Adding `current-&amp;gt;journal_info` to the handler would be easy. Getting the Lustre specific info might be tougher, but I saw some ideas upstream we could probably copy. The `ipa` just embedded the `notifier_block` in a larger struct and used `container_of` to get everything else.&lt;/p&gt;</comment>
                            <comment id="392320" author="gerrit" created="Wed, 8 Nov 2023 22:06:33 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52883/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52883/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17242&quot; title=&quot;Clean up and Improve Lustre Debugging&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17242&quot;&gt;LU-17242&lt;/a&gt; debug: remove CFS_CHECK_STACK&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: edb968d04f3a3c8054c12daee1ba557f855055ce&lt;/p&gt;</comment>
                            <comment id="399017" author="gerrit" created="Tue, 9 Jan 2024 18:24:02 +0000"  >&lt;p&gt;&quot;Timothy Day &amp;lt;timday@amazon.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/53625&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/53625&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17242&quot; title=&quot;Clean up and Improve Lustre Debugging&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17242&quot;&gt;LU-17242&lt;/a&gt; debug: use dump_stack() where possible&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 1debf098028fec7c27310d0985934eeee4e0a67a&lt;/p&gt;</comment>
                            <comment id="402558" author="gerrit" created="Sun, 4 Feb 2024 08:31:32 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/53625/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/53625/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17242&quot; title=&quot;Clean up and Improve Lustre Debugging&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17242&quot;&gt;LU-17242&lt;/a&gt; debug: use dump_stack() where possible&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: ecac0c175d934fd5624c9ad8db8f45dbc33fb56c&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="77709">LU-17075</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="74971">LU-16625</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i03zyf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>