<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:18:01 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-8491] Quota code sleeping in atomic context</title>
                <link>https://jira.whamcloud.com/browse/LU-8491</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I tried to run a debugging kernel with latest master with autotest and sanity-quota fell apart with multiple sleeping under spinlock problems culminating in double taking a spinlock:&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;08:09:46:[10054.232995] BUG: sleeping function called from invalid context at mm/slab.c:3054
08:09:46:[10054.237505] in_atomic(): 1, irqs_disabled(): 0, pid: 25313, name: mdt00_003
08:09:46:[10054.241875] CPU: 0 PID: 25313 Comm: mdt00_003 Tainted: G        W  OE  ------------   3.10.0-327.22.2.el7_lustre.x86_64 #1
08:09:46:[10054.243752] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2007
08:09:46:[10054.245245]  ffff8800399ede50 000000001b0e0c50 ffff88003cec7a28 ffffffff8164bed6
08:09:46:[10054.246953]  ffff88003cec7a38 ffffffff810b5639 ffff88003cec7ad0 ffffffff811cb595
08:09:46:[10054.248630]  ffffffffa016233f 0000000000000046 ffff880027ae7410 ffffffffa0bfcfb5
08:09:46:[10054.250317] Call Trace:
08:09:46:[10054.251601]  [&amp;lt;ffffffff8164bed6&amp;gt;] dump_stack+0x19/0x1b
08:09:46:[10054.253108]  [&amp;lt;ffffffff810b5639&amp;gt;] __might_sleep+0xd9/0x100
08:09:46:[10054.254619]  [&amp;lt;ffffffff811cb595&amp;gt;] kmem_cache_alloc_trace+0x65/0x630
08:09:46:[10054.256179]  [&amp;lt;ffffffffa016233f&amp;gt;] ? jbd2_journal_stop+0x1ef/0x400 [jbd2]
08:09:46:[10054.257791]  [&amp;lt;ffffffffa0bfcfb5&amp;gt;] ? qmt_glimpse_lock+0x155/0x780 [lquota]
08:09:46:[10054.259396]  [&amp;lt;ffffffff810bcab6&amp;gt;] ? try_to_wake_up+0x1b6/0x320
08:09:46:[10054.260937]  [&amp;lt;ffffffffa0bfcfb5&amp;gt;] qmt_glimpse_lock+0x155/0x780 [lquota]
08:09:46:[10054.262581]  [&amp;lt;ffffffffa0c00a2f&amp;gt;] qmt_glb_lock_notify+0x12f/0x310 [lquota]
08:09:46:[10054.264180]  [&amp;lt;ffffffffa0bfae19&amp;gt;] qmt_set.constprop.14+0x4d9/0x700 [lquota]
08:09:46:[10054.265796]  [&amp;lt;ffffffffa0bfb1fe&amp;gt;] qmt_quotactl+0x1be/0x630 [lquota]
08:09:46:[10054.267394]  [&amp;lt;ffffffffa0dde014&amp;gt;] mdt_quotactl+0x514/0x610 [mdt]
08:09:46:[10054.269032]  [&amp;lt;ffffffffa0a8b7e5&amp;gt;] tgt_request_handle+0x925/0x1330 [ptlrpc]
08:09:46:[10054.270655]  [&amp;lt;ffffffffa0a3924e&amp;gt;] ptlrpc_server_handle_request+0x22e/0xaa0 [ptlrpc]
08:09:46:[10054.272376]  [&amp;lt;ffffffffa0a37aee&amp;gt;] ? ptlrpc_wait_event+0xae/0x350 [ptlrpc]
08:09:46:[10054.273983]  [&amp;lt;ffffffff810bcc92&amp;gt;] ? default_wake_function+0x12/0x20
08:09:46:[10054.275549]  [&amp;lt;ffffffff810b2cd8&amp;gt;] ? __wake_up_common+0x58/0x90
08:09:46:[10054.277121]  [&amp;lt;ffffffffa0a3d018&amp;gt;] ptlrpc_main+0xa58/0x1db0 [ptlrpc]
08:09:46:[10054.278700]  [&amp;lt;ffffffffa0a3c5c0&amp;gt;] ? ptlrpc_register_service+0xe60/0xe60 [ptlrpc]
08:09:46:[10054.280352]  [&amp;lt;ffffffff810a8a24&amp;gt;] kthread+0xe4/0xf0
08:09:46:[10054.281827]  [&amp;lt;ffffffff810a8940&amp;gt;] ? kthread_create_on_node+0x140/0x140
08:09:46:[10054.283415]  [&amp;lt;ffffffff8165d3d8&amp;gt;] ret_from_fork+0x58/0x90
08:09:46:[10054.284925]  [&amp;lt;ffffffff810a8940&amp;gt;] ? kthread_create_on_node+0x140/0x140
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;08:09:46:[10058.183002] BUG: scheduling while atomic: qmt_reba_lustre/24447/0x10000002
08:09:46:[10058.184521] Modules linked in: osp(OE) mdd(OE) lod(OE) mdt(OE) lfsck(OE) mgs(OE) mgc(OE) osd_ldiskfs(OE) lquota(OE) fid(OE) fld(OE) ksocklnd(OE) ptlrpc(OE) obdclass(OE) lnet(OE) sha512_generic crypto_null libcfs(OE) ldiskfs(OE) dm_mod rpcsec_gss_krb5 nfsv4 dns_resolver nfs fscache xprtrdma ib_isert iscsi_target_mod ib_iser libiscsi scsi_transport_iscsi ib_srpt target_core_mod crc_t10dif crct10dif_generic crct10dif_common ib_srp scsi_transport_srp scsi_tgt ib_ipoib rdma_ucm ib_ucm ib_uverbs ib_umad rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr ppdev pcspkr virtio_balloon i2c_piix4 parport_pc parport nfsd nfs_acl lockd auth_rpcgss grace sunrpc ip_tables ext4 mbcache jbd2 ata_generic pata_acpi virtio_blk cirrus syscopyarea sysfillrect sysimgblt drm_kms_helper ttm 8139too drm ata_piix i2c_core serio_raw virtio_pci virtio_ring virtio libata 8139cp mii floppy
08:09:46:[10058.198939] CPU: 0 PID: 24447 Comm: qmt_reba_lustre Tainted: G        W  OE  ------------   3.10.0-327.22.2.el7_lustre.x86_64 #1
08:09:46:[10058.202211] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2007
08:09:46:[10058.203895]  ffff880027ae3fd8 00000000444ee29f ffff880027ae3c20 ffffffff8164bed6
08:09:46:[10058.205776]  ffff880027ae3c30 ffffffff81648241 ffff880027ae3c90 ffffffff8165223c
08:09:46:[10058.207645]  ffff880027ae7410 ffff880027ae3fd8 ffff880027ae3fd8 ffff880027ae3fd8
08:09:46:[10058.209514] Call Trace:
08:09:46:[10058.210983]  [&amp;lt;ffffffff8164bed6&amp;gt;] dump_stack+0x19/0x1b
08:09:46:[10058.212645]  [&amp;lt;ffffffff81648241&amp;gt;] __schedule_bug+0x4d/0x5b
08:09:46:[10058.214325]  [&amp;lt;ffffffff8165223c&amp;gt;] __schedule+0x7bc/0x900
08:09:46:[10058.215984]  [&amp;lt;ffffffff810b9ce6&amp;gt;] __cond_resched+0x26/0x30
08:09:46:[10058.217643]  [&amp;lt;ffffffff8165264a&amp;gt;] _cond_resched+0x3a/0x50
08:09:46:[10058.219298]  [&amp;lt;ffffffff811cb59a&amp;gt;] kmem_cache_alloc_trace+0x6a/0x630
08:09:46:[10058.221019]  [&amp;lt;ffffffffa0bfcfb5&amp;gt;] ? qmt_glimpse_lock+0x155/0x780 [lquota]
08:09:46:[10058.222777]  [&amp;lt;ffffffffa0bfcfb5&amp;gt;] qmt_glimpse_lock+0x155/0x780 [lquota]
08:09:46:[10058.224528]  [&amp;lt;ffffffffa0bfdcf5&amp;gt;] qmt_reba_thread+0x715/0xc90 [lquota]
08:09:46:[10058.226260]  [&amp;lt;ffffffff810bcc80&amp;gt;] ? wake_up_state+0x20/0x20
08:09:46:[10058.227914]  [&amp;lt;ffffffffa0bfd5e0&amp;gt;] ? qmt_glimpse_lock+0x780/0x780 [lquota]
08:09:46:[10058.229668]  [&amp;lt;ffffffff810a8a24&amp;gt;] kthread+0xe4/0xf0
08:09:46:[10058.231276]  [&amp;lt;ffffffff810a8940&amp;gt;] ? kthread_create_on_node+0x140/0x140
08:09:46:[10058.232990]  [&amp;lt;ffffffff8165d3d8&amp;gt;] ret_from_fork+0x58/0x90
08:09:46:[10058.234594]  [&amp;lt;ffffffff810a8940&amp;gt;] ? kthread_create_on_node+0x140/0x140
08:09:46:[10058.240296] BUG: spinlock cpu recursion on CPU#0, ldlm_cn00_002/17112
08:09:46:[10058.242027]  lock: 0xffff880036e6a4a0, .magic: dead4ead, .owner: qmt_reba_lustre/24447, .owner_cpu: 0
08:10:08:[10058.243896] CPU: 0 PID: 17112 Comm: ldlm_cn00_002 Tainted: G        W  OE  ------------   3.10.0-327.22.2.el7_lustre.x86_64 #1
08:10:08:[10058.247148] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2007
08:10:08:[10058.248814]  ffff880027ae7410 00000000d868321e ffff88002a1f7b98 ffffffff8164bed6
08:10:08:[10058.250668]  ffff88002a1f7bb8 ffffffff8164bf64 ffff880036e6a4a0 ffffffff818b3096
08:10:08:[10058.252541]  ffff88002a1f7bd8 ffffffff8164bf8a ffff880036e6a4a0 0000000000000000
08:10:08:[10058.254397] Call Trace:
08:10:08:[10058.255848]  [&amp;lt;ffffffff8164bed6&amp;gt;] dump_stack+0x19/0x1b
08:10:08:[10058.257488]  [&amp;lt;ffffffff8164bf64&amp;gt;] spin_dump+0x8c/0x91
08:10:08:[10058.259116]  [&amp;lt;ffffffff8164bf8a&amp;gt;] spin_bug+0x21/0x26
08:10:08:[10058.260725]  [&amp;lt;ffffffff8131c008&amp;gt;] do_raw_spin_lock+0x118/0x170
08:10:08:[10058.262421]  [&amp;lt;ffffffff8165413e&amp;gt;] _raw_spin_lock+0x1e/0x20
08:10:08:[10058.264094]  [&amp;lt;ffffffffa09d902c&amp;gt;] lock_res_and_lock+0x2c/0x50 [ptlrpc]
08:10:08:[10058.265831]  [&amp;lt;ffffffffa09e15dd&amp;gt;] ldlm_lock_cancel+0x2d/0x1e0 [ptlrpc]
08:10:08:[10058.267560]  [&amp;lt;ffffffffa0a06251&amp;gt;] ldlm_request_cancel+0x151/0x710 [ptlrpc]
08:10:08:[10058.269316]  [&amp;lt;ffffffffa0a09b4a&amp;gt;] ldlm_handle_cancel+0xba/0x250 [ptlrpc]
08:10:08:[10058.271051]  [&amp;lt;ffffffffa0a09e21&amp;gt;] ldlm_cancel_handler+0x141/0x490 [ptlrpc]
08:10:08:[10058.272791]  [&amp;lt;ffffffffa0a3924e&amp;gt;] ptlrpc_server_handle_request+0x22e/0xaa0 [ptlrpc]
08:10:08:[10058.274534]  [&amp;lt;ffffffffa0a37aee&amp;gt;] ? ptlrpc_wait_event+0xae/0x350 [ptlrpc]
08:10:08:[10058.276176]  [&amp;lt;ffffffff810bcc92&amp;gt;] ? default_wake_function+0x12/0x20
08:10:08:[10058.277743]  [&amp;lt;ffffffff810b2cd8&amp;gt;] ? __wake_up_common+0x58/0x90
08:10:08:[10058.279278]  [&amp;lt;ffffffffa0a3d018&amp;gt;] ptlrpc_main+0xa58/0x1db0 [ptlrpc]
08:10:08:[10058.280804]  [&amp;lt;ffffffffa0a3c5c0&amp;gt;] ? ptlrpc_register_service+0xe60/0xe60 [ptlrpc]
08:10:08:[10058.282370]  [&amp;lt;ffffffff810a8a24&amp;gt;] kthread+0xe4/0xf0
08:10:08:[10058.283727]  [&amp;lt;ffffffff810a8940&amp;gt;] ? kthread_create_on_node+0x140/0x140
08:10:08:[10058.285182]  [&amp;lt;ffffffff8165d3d8&amp;gt;] ret_from_fork+0x58/0x90
08:10:08:[10058.286542]  [&amp;lt;ffffffff810a8940&amp;gt;] ? kthread_create_on_node+0x140/0x140
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Full report is at &lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/c73d6a92-5e4e-11e6-b5b1-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/c73d6a92-5e4e-11e6-b5b1-5254006e85c2&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="38749">LU-8491</key>
            <summary>Quota code sleeping in atomic context</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="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="niu">Niu Yawei</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Aug 2016 04:43:20 +0000</created>
                <updated>Sat, 17 Dec 2016 14:15:15 +0000</updated>
                            <resolved>Sat, 17 Dec 2016 14:15:15 +0000</resolved>
                                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="161417" author="bzzz" created="Wed, 10 Aug 2016 15:38:15 +0000"  >&lt;p&gt;this is because of OBD_ALLOC_PTR(work); with the lock on the resource held: lock_res(res);&lt;/p&gt;</comment>
                            <comment id="161466" author="jgmitter" created="Wed, 10 Aug 2016 18:49:29 +0000"  >&lt;p&gt;Hi Niu,&lt;/p&gt;

&lt;p&gt;Can you please have a look at this issue?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;br/&gt;
Joe&lt;/p&gt;</comment>
                            <comment id="161876" author="gerrit" created="Mon, 15 Aug 2016 08:36:07 +0000"  >&lt;p&gt;Niu Yawei (yawei.niu@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/21923&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/21923&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8491&quot; title=&quot;Quota code sleeping in atomic context&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8491&quot;&gt;&lt;del&gt;LU-8491&lt;/del&gt;&lt;/a&gt; quota: sleep while holding spinlock&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 6c1016218f9d8f7421aea95405a20e15cf07b817&lt;/p&gt;</comment>
                            <comment id="178191" author="gerrit" created="Sat, 17 Dec 2016 05:37:06 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/21923/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/21923/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8491&quot; title=&quot;Quota code sleeping in atomic context&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8491&quot;&gt;&lt;del&gt;LU-8491&lt;/del&gt;&lt;/a&gt; quota: sleep while holding spinlock&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 6cb38c3a863993f3bba8332194c5ee8c939ad25d&lt;/p&gt;</comment>
                            <comment id="178246" author="pjones" created="Sat, 17 Dec 2016 14:15:15 +0000"  >&lt;p&gt;Landed for 2.10&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|hzyk9r:</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>