<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:17:18 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-1513] Test failure on test lustre-initialization-1, sanity, others: &quot;kernel BUG at mm/slab.c:2833&quot;</title>
                <link>https://jira.whamcloud.com/browse/LU-1513</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for Li Wei &amp;lt;liwei@whamcloud.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run: &lt;a href=&quot;https://maloo.whamcloud.com/test_sets/9d879d58-b4de-11e1-bad8-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/9d879d58-b4de-11e1-bad8-52540035b04c&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The sub-test lustre-initialization_1 failed with the following error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Test system failed to start single suite, so abandoning all hope and giving up&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Info required for matching: lustre-initialization-1 lustre-initialization_1&lt;/p&gt;

&lt;p&gt;From the OSS console log:&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;14:52:23:LDISKFS-fs (dm-6): mounted filesystem with ordered data mode. Opts: 
14:52:23:LDISKFS-fs (dm-6): mounted filesystem with ordered data mode. Opts: 
14:52:23:------------[ cut here ]------------
14:52:23:kernel BUG at mm/slab.c:2833!
14:52:23:invalid opcode: 0000 [#1] SMP 
14:52:23:last sysfs file: /sys/devices/pci0000:00/0000:00:05.0/virtio1/block/vda/queue/max_sectors_kb
14:52:24:CPU 1 
14:52:24:Modules linked in: obdfilter(U) fsfilt_ldiskfs(U) ost(U) mgc(U) lustre(U) lquota(U) lov(U) osc(U) mdc(U) fid(U) fld(U) ksocklnd(U) ptlrpc(U) obdclass(U) lnet(U) lvfs(U) sha512_generic sha256_generic libcfs(U) ldiskfs(U) jbd2 nfsd lockd nfs_acl auth_rpcgss exportfs autofs4 sunrpc ib_ipoib rdma_ucm ib_ucm ib_uverbs ib_umad rdma_cm ib_cm iw_cm ib_addr ipv6 ib_sa ib_mad ib_core microcode 8139too 8139cp mii i2c_piix4 i2c_core virtio_balloon ext3 jbd mbcache virtio_blk virtio_pci virtio_ring virtio pata_acpi ata_generic ata_piix dm_mirror dm_region_hash dm_log dm_mod [last unloaded: speedstep_lib]
14:52:24:
14:52:25:Pid: 5368, comm: llog_process_th Not tainted 2.6.32-220.17.1.el6_lustre.x86_64 #1 Red Hat KVM
14:52:25:RIP: 0010:[&amp;lt;ffffffff8115e7b3&amp;gt;]  [&amp;lt;ffffffff8115e7b3&amp;gt;] cache_grow+0x313/0x320
14:52:25:RSP: 0018:ffff88007c1d1990  EFLAGS: 00010002
14:52:25:RAX: ffff88007f821800 RBX: ffff88007f910440 RCX: 0000000000000000
14:52:25:RDX: 0000000000000000 RSI: 0000000000041252 RDI: ffff88007f910440
14:52:25:RBP: ffff88007c1d19f0 R08: 0000000000000246 R09: 00000000fffffffe
14:52:25:R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000041252
14:52:25:R13: ffff88007f8217c0 R14: 000000000000000c R15: 0000000000000000
14:52:25:FS:  0000000000000000(0000) GS:ffff880002300000(0000) knlGS:0000000000000000
14:52:25:CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
14:52:25:CR2: 00007f0a50fde450 CR3: 000000007c173000 CR4: 00000000000006e0
14:52:25:DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
14:52:25:DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
14:52:25:Process llog_process_th (pid: 5368, threadinfo ffff88007c1d0000, task ffff8800760ca080)
14:52:25:Stack:
14:52:25: 000000000000008e 0100000400000020 4fd7ba1600000001 0000000000062549
14:52:29:&amp;lt;0&amp;gt; 000014f800000000 000000af00000000 ffff88000002bb08 ffff88007f910440
14:52:29:&amp;lt;0&amp;gt; ffff88007fa7d480 ffff88007f8217c0 000000000000000c ffff88007f8217e0
14:52:29:Call Trace:
14:52:29: [&amp;lt;ffffffff8115e9c2&amp;gt;] cache_alloc_refill+0x202/0x240
14:52:29: [&amp;lt;ffffffffa043bbf0&amp;gt;] ? cfs_alloc+0x30/0x60 [libcfs]
14:52:29: [&amp;lt;ffffffff8115f6e9&amp;gt;] __kmalloc+0x1a9/0x220
14:52:29: [&amp;lt;ffffffffa043bbf0&amp;gt;] cfs_alloc+0x30/0x60 [libcfs]
14:52:29: [&amp;lt;ffffffffa0b6a94e&amp;gt;] filter_common_setup+0xde/0x13f0 [obdfilter]
14:52:29: [&amp;lt;ffffffffa0b6c280&amp;gt;] filter_setup+0x620/0xa20 [obdfilter]
14:52:29: [&amp;lt;ffffffffa059d974&amp;gt;] obd_setup+0x1b4/0x2f0 [obdclass]
14:52:29: [&amp;lt;ffffffffa058939b&amp;gt;] ? class_new_export+0x73b/0x970 [obdclass]
14:52:29: [&amp;lt;ffffffffa059dcb8&amp;gt;] class_setup+0x208/0x890 [obdclass]
14:52:29: [&amp;lt;ffffffffa05a4e1c&amp;gt;] class_process_config+0xbec/0x1c20 [obdclass]
14:52:29: [&amp;lt;ffffffffa043bbf0&amp;gt;] ? cfs_alloc+0x30/0x60 [libcfs]
14:52:29: [&amp;lt;ffffffffa059f623&amp;gt;] ? lustre_cfg_new+0x353/0x7e0 [obdclass]
14:52:29: [&amp;lt;ffffffffa05a6efb&amp;gt;] class_config_llog_handler+0x9bb/0x1610 [obdclass]
14:52:29: [&amp;lt;ffffffffa05765b0&amp;gt;] ? llog_lvfs_next_block+0x2d0/0x650 [obdclass]
14:52:29: [&amp;lt;ffffffffa0570940&amp;gt;] ? llog_process_thread+0x0/0xd00 [obdclass]
14:52:31: [&amp;lt;ffffffffa05711c8&amp;gt;] llog_process_thread+0x888/0xd00 [obdclass]
14:52:31: [&amp;lt;ffffffffa0570940&amp;gt;] ? llog_process_thread+0x0/0xd00 [obdclass]
14:52:31: [&amp;lt;ffffffff8100c14a&amp;gt;] child_rip+0xa/0x20
14:52:31: [&amp;lt;ffffffffa0570940&amp;gt;] ? llog_process_thread+0x0/0xd00 [obdclass]
14:52:31: [&amp;lt;ffffffffa0570940&amp;gt;] ? llog_process_thread+0x0/0xd00 [obdclass]
14:52:31: [&amp;lt;ffffffff8100c140&amp;gt;] ? child_rip+0x0/0x20
14:52:31:Code: 0f 1f 84 00 00 00 00 00 49 8d 54 24 30 48 c7 c0 fc ff ff ff 48 89 55 c8 e9 e1 fe ff ff 0f 0b eb fe ba 01 00 00 00 e9 2a fe ff ff &amp;lt;0f&amp;gt; 0b eb fe 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 
14:52:31:RIP  [&amp;lt;ffffffff8115e7b3&amp;gt;] cache_grow+0x313/0x320
14:52:31: RSP &amp;lt;ffff88007c1d1990&amp;gt;
14:52:31:---[ end trace edf3800813592bec ]---
14:52:31:Kernel panic - not syncing: Fatal exception
14:52:31:Pid: 5368, comm: llog_process_th Tainted: G      D    ----------------   2.6.32-220.17.1.el6_lustre.x86_64 #1
14:52:31:Call Trace:
14:52:31: [&amp;lt;ffffffff814eccea&amp;gt;] ? panic+0x78/0x143
14:52:31: [&amp;lt;ffffffff814f0e84&amp;gt;] ? oops_end+0xe4/0x100
14:52:31: [&amp;lt;ffffffff8100f26b&amp;gt;] ? die+0x5b/0x90
14:52:31: [&amp;lt;ffffffff814f0754&amp;gt;] ? do_trap+0xc4/0x160
14:52:32: [&amp;lt;ffffffff8100ce35&amp;gt;] ? do_invalid_op+0x95/0xb0
14:52:32: [&amp;lt;ffffffff8115e7b3&amp;gt;] ? cache_grow+0x313/0x320
14:52:32: [&amp;lt;ffffffff81275b56&amp;gt;] ? vsnprintf+0x2b6/0x5f0
14:52:32: [&amp;lt;ffffffff8100bedb&amp;gt;] ? invalid_op+0x1b/0x20
14:52:32: [&amp;lt;ffffffff8115e7b3&amp;gt;] ? cache_grow+0x313/0x320
14:52:32: [&amp;lt;ffffffff8115e9c2&amp;gt;] ? cache_alloc_refill+0x202/0x240
14:52:32: [&amp;lt;ffffffffa043bbf0&amp;gt;] ? cfs_alloc+0x30/0x60 [libcfs]
14:52:32: [&amp;lt;ffffffff8115f6e9&amp;gt;] ? __kmalloc+0x1a9/0x220
14:52:32: [&amp;lt;ffffffffa043bbf0&amp;gt;] ? cfs_alloc+0x30/0x60 [libcfs]
14:52:32: [&amp;lt;ffffffffa0b6a94e&amp;gt;] ? filter_common_setup+0xde/0x13f0 [obdfilter]
14:52:32: [&amp;lt;ffffffffa0b6c280&amp;gt;] ? filter_setup+0x620/0xa20 [obdfilter]
14:52:32: [&amp;lt;ffffffffa059d974&amp;gt;] ? obd_setup+0x1b4/0x2f0 [obdclass]
14:52:32: [&amp;lt;ffffffffa058939b&amp;gt;] ? class_new_export+0x73b/0x970 [obdclass]
14:52:32: [&amp;lt;ffffffffa059dcb8&amp;gt;] ? class_setup+0x208/0x890 [obdclass]
14:52:32: [&amp;lt;ffffffffa05a4e1c&amp;gt;] ? class_process_config+0xbec/0x1c20 [obdclass]
14:52:32: [&amp;lt;ffffffffa043bbf0&amp;gt;] ? cfs_alloc+0x30/0x60 [libcfs]
14:52:32: [&amp;lt;ffffffffa059f623&amp;gt;] ? lustre_cfg_new+0x353/0x7e0 [obdclass]
14:52:32: [&amp;lt;ffffffffa05a6efb&amp;gt;] ? class_config_llog_handler+0x9bb/0x1610 [obdclass]
14:52:33: [&amp;lt;ffffffffa05765b0&amp;gt;] ? llog_lvfs_next_block+0x2d0/0x650 [obdclass]
14:52:33: [&amp;lt;ffffffffa0570940&amp;gt;] ? llog_process_thread+0x0/0xd00 [obdclass]
14:52:33: [&amp;lt;ffffffffa05711c8&amp;gt;] ? llog_process_thread+0x888/0xd00 [obdclass]
14:52:33: [&amp;lt;ffffffffa0570940&amp;gt;] ? llog_process_thread+0x0/0xd00 [obdclass]
14:52:33: [&amp;lt;ffffffff8100c14a&amp;gt;] ? child_rip+0xa/0x20
14:52:33: [&amp;lt;ffffffffa0570940&amp;gt;] ? llog_process_thread+0x0/0xd00 [obdclass]
14:52:33: [&amp;lt;ffffffffa0570940&amp;gt;] ? llog_process_thread+0x0/0xd00 [obdclass]
14:52:33: [&amp;lt;ffffffff8100c140&amp;gt;] ? child_rip+0x0/0x20
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="14885">LU-1513</key>
            <summary>Test failure on test lustre-initialization-1, sanity, others: &quot;kernel BUG at mm/slab.c:2833&quot;</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</priority>
                        <status id="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="yong.fan">nasf</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Jun 2012 23:41:52 +0000</created>
                <updated>Mon, 18 Jun 2012 18:12:24 +0000</updated>
                            <resolved>Sat, 16 Jun 2012 17:38:48 +0000</resolved>
                                    <version>Lustre 2.3.0</version>
                                    <fixVersion>Lustre 2.3.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="40463" author="liwei" created="Tue, 12 Jun 2012 23:43:41 +0000"  >&lt;p&gt;This is the same kernel assertion with the one in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1510&quot; title=&quot;Test failure on test suite sanity-quota, subtest test_18c&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1510&quot;&gt;&lt;del&gt;LU-1510&lt;/del&gt;&lt;/a&gt;, though the stacks differ.&lt;/p&gt;</comment>
                            <comment id="40466" author="adilger" created="Tue, 12 Jun 2012 23:59:31 +0000"  >&lt;p&gt;This looks like kernel memory corruption, possibly due to double free, or use of freed memory.   Are there any patches which have landed that appear suspicious?  It might make sense to start submitting some of the recent builds back to autotest to see where the problem was first introduced. &lt;/p&gt;</comment>
                            <comment id="40633" author="adilger" created="Fri, 15 Jun 2012 02:13:53 +0000"  >&lt;p&gt;This is randomly affecting a large fraction of tests, so I&apos;m bumping this to a blocker.&lt;/p&gt;

&lt;p&gt;All of the test failures appear to be on the OSS while doing initial configuration, so it is very likely some patch that has landed to that code recently.&lt;/p&gt;</comment>
                            <comment id="40635" author="adilger" created="Fri, 15 Jun 2012 03:43:21 +0000"  >&lt;p&gt;It appears that the first test failure is seen in:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://maloo.whamcloud.com/test_sets/5219062a-b3e1-11e1-a2dd-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/5219062a-b3e1-11e1-a2dd-52540035b04c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is running a &quot;full&quot; test on git commit 220c6d92200792c318f5248e8e44dbcfc712c788 &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1402&quot; title=&quot;cfs_alloc_flags_to_gfp should translate CFS_ALLOC_HIGH to __GFP_HIGHMEM instead of __GFP_HIGH&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1402&quot;&gt;&lt;del&gt;LU-1402&lt;/del&gt;&lt;/a&gt; libcfs: CFS_ALLOC_HIGH is __GFP_HIGHMEM&quot;, but I don&apos;t see many users of CFS_ALLOC_HIGHMEM, so I&apos;m not sure this is the culprit. That said, it would have to be one of the patches committed shortly before this one, or we would have seen the failure earlier (about 1-in-5 tests fail).&lt;/p&gt;</comment>
                            <comment id="40700" author="yong.fan" created="Sat, 16 Jun 2012 02:00:32 +0000"  >&lt;p&gt;The reason is found. The failure was triggered here:&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;lustre/obdfilter/filter.c
&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; filter_iobuf_pool_init(struct filter_obd *filter)
{
        void **pool;

        ENTRY;


===&amp;gt;        OBD_ALLOC_GFP(filter-&amp;gt;fo_iobuf_pool, OSS_THREADS_MAX * sizeof(*pool),
                      GFP_KERNEL);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (filter-&amp;gt;fo_iobuf_pool == NULL)
                RETURN(-ENOMEM);

        filter-&amp;gt;fo_iobuf_count = OSS_THREADS_MAX;

        RETURN(0);
}

mm/slab.c
&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; cache_grow(struct kmem_cache *cachep,
                gfp_t flags, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; nodeid, void *objp)
{

        struct slab *slabp;
        size_t offset;
        gfp_t local_flags;
        struct kmem_list3 *l3;

        /*
         * Be lazy and only check &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; valid flags here,  keeping it out of the
         * critical path in kmem_cache_alloc().
         */
===&amp;gt;        BUG_ON(flags &amp;amp; GFP_SLAB_BUG_MASK);
...
}

include/linux/gfp.h
===&amp;gt; #define __GFP_HIGHMEM   ((__force gfp_t)0x02u)
...
===&amp;gt; #define __GFP_WAIT      ((__force gfp_t)0x10u)  &lt;span class=&quot;code-comment&quot;&gt;/* Can wait and reschedule? */&lt;/span&gt;
#define __GFP_HIGH      ((__force gfp_t)0x20u)  &lt;span class=&quot;code-comment&quot;&gt;/* Should access emergency pools? */&lt;/span&gt;
===&amp;gt; #define __GFP_IO        ((__force gfp_t)0x40u)  &lt;span class=&quot;code-comment&quot;&gt;/* Can start physical IO? */&lt;/span&gt;
===&amp;gt; #define __GFP_FS        ((__force gfp_t)0x80u)  &lt;span class=&quot;code-comment&quot;&gt;/* Can call down to low-level FS? */&lt;/span&gt;
...
===&amp;gt; #define GFP_KERNEL      (__GFP_WAIT | __GFP_IO | __GFP_FS)
...
&lt;span class=&quot;code-comment&quot;&gt;/* Do not use these with a slab allocator */&lt;/span&gt;
#define GFP_SLAB_BUG_MASK (__GFP_DMA32|__GFP_HIGHMEM|~__GFP_BITS_MASK)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We expect &quot;GFP_KERNEL&quot; to be transferred into kernel slab allocator. Unfortunately, the flag &quot;GFP_KERNEL&quot; is converted by Lustre code as following:&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;libcfs/include/libcfs/libcfs.h
/*
 * Universal memory allocator API
 */
&lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt; cfs_alloc_flags {
        &lt;span class=&quot;code-comment&quot;&gt;/* allocation is not allowed to block */&lt;/span&gt;
        CFS_ALLOC_ATOMIC = 0x1,
        &lt;span class=&quot;code-comment&quot;&gt;/* allocation is allowed to block */&lt;/span&gt;
        CFS_ALLOC_WAIT   = 0x2,
        &lt;span class=&quot;code-comment&quot;&gt;/* allocation should &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; zeroed memory */&lt;/span&gt;
        CFS_ALLOC_ZERO   = 0x4,
        /* allocation is allowed to call file-system code to free/clean
         * memory */
        CFS_ALLOC_FS     = 0x8,
        &lt;span class=&quot;code-comment&quot;&gt;/* allocation is allowed to &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; io to free/clean memory */&lt;/span&gt;
===&amp;gt;        CFS_ALLOC_IO     = 0x10,
        &lt;span class=&quot;code-comment&quot;&gt;/* don&apos;t report allocation failure to the console */&lt;/span&gt;
        CFS_ALLOC_NOWARN = 0x20,
        &lt;span class=&quot;code-comment&quot;&gt;/* standard allocator flag combination */&lt;/span&gt;
        CFS_ALLOC_STD    = CFS_ALLOC_FS | CFS_ALLOC_IO,
        CFS_ALLOC_USER   = CFS_ALLOC_WAIT | CFS_ALLOC_FS | CFS_ALLOC_IO,
};              
        
&lt;span class=&quot;code-comment&quot;&gt;/* flags &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; cfs_page_alloc() in addition to &lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt; cfs_alloc_flags */&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt; cfs_alloc_page_flags {
        /* allow to &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; page beyond KVM. It has to be mapped into KVM by
         * cfs_kmap() and unmapped with cfs_kunmap(). */
===&amp;gt;        CFS_ALLOC_HIGHMEM  = 0x40,
        CFS_ALLOC_HIGHUSER = CFS_ALLOC_WAIT | CFS_ALLOC_FS | CFS_ALLOC_IO |
                             CFS_ALLOC_HIGHMEM,
};      

libcfs/libcfs/linux/linux-mem.c
&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; unsigned &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; cfs_alloc_flags_to_gfp(u_int32_t flags)
{       
        unsigned &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; mflags = 0;
        
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (flags &amp;amp; CFS_ALLOC_ATOMIC)
                mflags |= __GFP_HIGH;
        &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
                mflags |= __GFP_WAIT;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (flags &amp;amp; CFS_ALLOC_NOWARN)
                mflags |= __GFP_NOWARN;
===&amp;gt;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (flags &amp;amp; CFS_ALLOC_IO)
                mflags |= __GFP_IO;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (flags &amp;amp; CFS_ALLOC_FS)
                mflags |= __GFP_FS;
===&amp;gt;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (flags &amp;amp; CFS_ALLOC_HIGHMEM)
                mflags |= __GFP_HIGHMEM;
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; mflags;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Firstly, &quot;GFP_KERNEL&quot; was explained as &quot;__GFP_WAIT | __GFP_IO | __GFP_FS&quot;, means &quot;0x10 | 0x40 | 0x80&quot;.&lt;br/&gt;
Then they are regarded as Lustre flags &quot;CFS_ALLOC_IO | CFS_ALLOC_HIGHMEM | 0x80&quot;.&lt;br/&gt;
And then, after the conversion of &quot;cfs_alloc_flags_to_gfp()&quot;, they become &quot;_&lt;em&gt;GFP_IO | __GFP_HIGHMEM&quot;. Those are the real flags transferred to kernel slab allocator. But the &quot;&lt;/em&gt;_GFP_HIGHMEM&quot; is NOT what we expected.&lt;/p&gt;

&lt;p&gt;So &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1402&quot; title=&quot;cfs_alloc_flags_to_gfp should translate CFS_ALLOC_HIGH to __GFP_HIGHMEM instead of __GFP_HIGH&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1402&quot;&gt;&lt;del&gt;LU-1402&lt;/del&gt;&lt;/a&gt; patch triggered the existing issues. I will make patch to fix it.&lt;/p&gt;</comment>
                            <comment id="40701" author="yong.fan" created="Sat, 16 Jun 2012 03:54:52 +0000"  >&lt;p&gt;This is the patch:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#change,3118&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,3118&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="40711" author="adilger" created="Sat, 16 Jun 2012 17:38:48 +0000"  >&lt;p&gt;Patch landed.&lt;/p&gt;</comment>
                            <comment id="40791" author="ian" created="Mon, 18 Jun 2012 18:12:24 +0000"  >&lt;p&gt;Patch landed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="14943">LU-1529</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14946">LU-1530</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="14421">LU-1402</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14852">LU-1510</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hzv2xb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3973</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>