<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:30:03 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-16792] dirtying dbuf but not tx_held</title>
                <link>https://jira.whamcloud.com/browse/LU-16792</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Brian recommended to try and run Lustre against zfs built with --enable-debug as that does some extra checks and this is the first thing that cropped up right at mount time.&lt;/p&gt;

&lt;p&gt;I guess dirtying blocks outside of transaction is not very good?&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;[ &#160;128.003305] Lustre: lustre-MDT0000: mounting server target with &apos;-t lustre&apos; d
eprecated, use &apos;-t lustre_tgt&apos;&#160;
[ &#160;129.332151] Kernel panic - not syncing: dirtying dbuf obj=20e lvl=0 blkid=10&#160;
but not tx_held
[ &#160;129.332151]
[ &#160;129.333151] CPU: 3 PID: 9383 Comm: ll_mgs_0001 Kdump: loaded Tainted: G &#160; &#160; &#160;
&#160; &#160; &#160;O &#160; &#160; --------- - &#160;- 4.18.0rh8.7-debug #2
[ &#160;129.334318] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ &#160;129.334919] Call Trace:
[ &#160;129.335196] &#160;? dump_stack+0xf2/0x15e
[ &#160;129.335569] &#160;? panic+0x17a/0x4ac
[ &#160;129.335932] &#160;? dmu_tx_dirty_buf+0x40c/0x5b0 [zfs]
[ &#160;129.336722] &#160;? _raw_spin_unlock+0x3f/0x60
[ &#160;129.337155] &#160;? dbuf_dirty+0x6e/0x29a0 [zfs]
[ &#160;129.337765] &#160;? dbuf_read+0x753/0xe40 [zfs]
[ &#160;129.338380] &#160;? lock_release+0x343/0x770
[ &#160;129.338808] &#160;? __mutex_unlock_slowpath+0x49/0x430
[ &#160;129.339330] &#160;? dmu_buf_will_dirty_impl+0x19b/0x570 [zfs]
[ &#160;129.340103] &#160;? dmu_buf_will_dirty+0x1a/0x30 [zfs]
[ &#160;129.340766] &#160;? dmu_write_impl+0x5c/0x1d0 [zfs]
[ &#160;129.341418] &#160;? dmu_write_by_dnode+0xa6/0x110 [zfs]
[ &#160;129.342162] &#160;? osd_write+0x177/0x8d0 [osd_zfs]
[ &#160;129.342685] &#160;? dt_record_write+0x3b/0x180 [obdclass]
[ &#160;129.343277] &#160;? llog_osd_write_rec+0xe88/0x1ed0 [obdclass]
[  129.343907] &#160;? llog_write_rec+0x4d8/0x6c0 [obdclass]
[ &#160;129.344490] &#160;? llog_write+0x6be/0x760 [obdclass]
[ &#160;129.345034] &#160;? record_marker+0x180/0x2a0 [mgs]
[ &#160;129.345513] &#160;? mgs_write_log_lov.isra.7+0x2ff/0x980 [mgs]
[ &#160;129.346119] &#160;? mgs_write_log_mdt0+0x35e/0xa60 [mgs]
[ &#160;129.346630] &#160;? mgs_write_log_mdt+0x115/0x10c0 [mgs]
[ &#160;129.347203] &#160;? mgs_write_log_target+0x74b/0x8d0 [mgs]
[ &#160;129.347743] &#160;? mgs_target_reg+0xf8f/0x1a90 [mgs]
[ &#160;129.348242] &#160;? tgt_handle_request0+0xf9/0xa80 [ptlrpc]
[ &#160;129.348947] &#160;? tgt_request_handle+0x3a5/0x1c00 [ptlrpc]
[ &#160;129.349595] &#160;? ptlrpc_server_handle_request+0x632/0x11e0 [ptlrpc]
[ &#160;129.350328] &#160;? lprocfs_counter_add+0x172/0x240 [obdclass]
[ &#160;129.350974] &#160;? ptlrpc_main+0xd30/0x1440 [ptlrpc]
[ &#160;129.351555] &#160;? ptlrpc_wait_event+0x990/0x990 [ptlrpc]
[ &#160;129.352197] &#160;? kthread+0x197/0x1d0
[ &#160;129.352560] &#160;? set_kthread_struct+0x80/0x80
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="75886">LU-16792</key>
            <summary>dirtying dbuf but not tx_held</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="wc-triage">WC Triage</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 May 2023 00:15:37 +0000</created>
                <updated>Tue, 2 May 2023 09:29:04 +0000</updated>
                                            <version>Lustre 2.16.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="371133" author="bzzz" created="Tue, 2 May 2023 06:06:50 +0000"  >&lt;p&gt;checking..&lt;/p&gt;</comment>
                            <comment id="371138" author="bzzz" created="Tue, 2 May 2023 07:14:30 +0000"  >&lt;p&gt;interesting, I can build with --enable-debug, but can&apos;t start:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
osd_zfs: Unknown symbol zfs_refcount_add (err 0)
insmod: ERROR: could not insert module /mnt/build/lustre/tests/../osd-zfs/osd_zfs.ko: Unknown symbol in module
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;zfs_recount_add is not exported in 2.1.2, only in 2.1.5+&lt;/p&gt;</comment>
                            <comment id="371143" author="bzzz" created="Tue, 2 May 2023 08:34:04 +0000"  >&lt;p&gt;can&apos;t build any ZFS &lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
checking whether blk_queue_update_readahead() exists... checking whether disk_update_readahead() exists... no
checking whether blk_queue_discard() is available... configure: error: 
	*** None of the expected &lt;span class=&quot;code-quote&quot;&gt;&quot;blk_queue_discard&quot;&lt;/span&gt; interfaces were detected.
	*** This may be because your kernel version is newer than what is
	*** supported, or you are using a patched custom kernel with
	*** incompatible modifications.
	***
	*** ZFS Version: zfs-2.1.3-1
	*** Compatible Kernels: 3.10 - 5.16
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;so the root cause is:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
make: Entering directory &lt;span class=&quot;code-quote&quot;&gt;&apos;/home/alexey/linux-4.18.0-425.3.1.el8&apos;&lt;/span&gt;
  CC [M]  /home/alexey/zfs/build/blk_queue_discard/blk_queue_discard.o
/home/alexey/zfs/build/blk_queue_discard/blk_queue_discard.c: In function &#8216;main&#8217;:
/home/alexey/zfs/build/blk_queue_discard/blk_queue_discard.c:103:1: error: the frame size of 4256 bytes is larger than 4096 bytes [-Werror=frame-larger-than=]
  103 | }
      | ^
cc1: all warnings being treated as errors
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I guess it&apos;s kernel&apos;s debug options inflating request_queue struct:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
CONFIG_DEBUG_RT_MUTEXES=y
CONFIG_DEBUG_SPINLOCK=y
CONFIG_DEBUG_MUTEXES=y
CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y
CONFIG_DEBUG_RWSEMS=y
CONFIG_DEBUG_LOCK_ALLOC=y
CONFIG_DEBUG_LOCKDEP=y
CONFIG_DEBUG_ATOMIC_SLEEP=y
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

</comment>
                            <comment id="371144" author="bzzz" created="Tue, 2 May 2023 08:54:39 +0000"  >&lt;p&gt;disabling CONFIG_LOCK_STAT helped.&lt;/p&gt;</comment>
                            <comment id="371145" author="bzzz" created="Tue, 2 May 2023 09:29:04 +0000"  >&lt;p&gt;so.. this is a dup of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2160&quot; title=&quot;Implement ZFS dmu_tx_hold_append() declarations for llog &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2160&quot;&gt;LU-2160&lt;/a&gt; and &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7409&quot; title=&quot;llog declares write region that don&amp;#39;t match actually write region later for osd_zfs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7409&quot;&gt;&lt;del&gt;LU-7409&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <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|i03ken:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>