<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:03:53 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-114] WARNING: at fs/namei.c:1332 lookup_one_len+0xf1/0x110()</title>
                <link>https://jira.whamcloud.com/browse/LU-114</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The following kernel warning happens when mounting the MDT for the first time after booting the node.&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;2011-02-24 15:50:06 ------------[ cut here ]------------
2011-02-24 15:50:06 WARNING: at fs/namei.c:1332 lookup_one_len+0xf1/0x110() (Not tainted)
2011-02-24 15:50:06 Hardware name: X8DTH-i/6/iF/6F
2011-02-24 15:50:06 Modules linked in: cmm osd_ldiskfs mdt mdd mds 
fsfilt_ldiskfs exportfs mgs mgc ext4 ldiskfs lustre lov osc lquota mdc fid fld
ko2iblnd ptlrpc obdclass lvfs lnet libcfs mbcache jbd2 ib_ipoib rdma_ucm ib_ucm
ib_uverbs ib_umad rdma_cm ib_cm iw_cm ib_addr ib_sa mlx4_ib ib_mad ib_core sg 
sd_mod crc_t10dif dm_mirror dm_region_hash dm_log dm_mod video output sbs sbshc
power_meter hwmon acpi_pad parport serio_raw i2c_i801 i2c_core ata_generic
pata_acpi ata_piix iTCO_wdt iTCO_vendor_support ioatdma i7core_edac edac_core
mpt2sas scsi_transport_sas raid_class ipv6 nfs lockd fscache nfs_acl
auth_rpcgss sunrpc mlx4_core igb dca [last unloaded: ldiskfs]
2011-02-24 15:50:06 Pid: 8906, comm: llog_process_th Not tainted 2.6.32-14chaos #1
2011-02-24 15:50:06 Call Trace:
2011-02-24 15:50:06  [&amp;lt;ffffffff8106b8f7&amp;gt;] warn_slowpath_common+0x87/0xc0
2011-02-24 15:50:06  [&amp;lt;ffffffff8106b94a&amp;gt;] warn_slowpath_null+0x1a/0x20
2011-02-24 15:50:06  [&amp;lt;ffffffff81178cf1&amp;gt;] lookup_one_len+0xf1/0x110
2011-02-24 15:50:06  [&amp;lt;ffffffffa0567a62&amp;gt;] sptlrpc_target_local_copy_conf+0xc2/0xeb0 [ptlrpc]
2011-02-24 15:50:06  [&amp;lt;ffffffffa033154e&amp;gt;] ? cfs_timer_arm+0xe/0x10 [libcfs]
2011-02-24 15:50:06  [&amp;lt;ffffffffa0568c0b&amp;gt;] sptlrpc_conf_target_get_rules+0x3bb/0x5d0 [ptlrpc]
2011-02-24 15:50:06  [&amp;lt;ffffffffa09a8ceb&amp;gt;] ? mdd_llog_ctxt_get+0x7b/0x140 [mdd]
2011-02-24 15:50:06  [&amp;lt;ffffffffa09cf2c5&amp;gt;] mdt_adapt_sptlrpc_conf+0x45/0x110 [mdt]
2011-02-24 15:50:06  [&amp;lt;ffffffffa0a5f933&amp;gt;] ? cmm_llog_ctxt_get+0x53/0x120 [cmm]
2011-02-24 15:50:06  [&amp;lt;ffffffffa09e30b6&amp;gt;] mdt_device_alloc+0x1d06/0x25f0 [mdt]
2011-02-24 15:50:06  [&amp;lt;ffffffffa041ceaf&amp;gt;] obd_setup+0x1ff/0x330 [obdclass]
2011-02-24 15:50:06  [&amp;lt;ffffffffa09cf9b8&amp;gt;] ? mdt_init_export+0x1c8/0x1e0 [mdt]
2011-02-24 15:50:06  [&amp;lt;ffffffffa041d1e9&amp;gt;] class_setup+0x209/0xa50 [obdclass]
2011-02-24 15:50:06  [&amp;lt;ffffffffa0403b06&amp;gt;] ? class_name2dev+0x56/0xd0 [obdclass]
2011-02-24 15:50:06  [&amp;lt;ffffffffa0424d2c&amp;gt;] class_process_config+0xd6c/0x1fd0 [obdclass]
2011-02-24 15:50:06  [&amp;lt;ffffffffa0331983&amp;gt;] ? cfs_alloc+0x63/0x90 [libcfs]
2011-02-24 15:50:06  [&amp;lt;ffffffffa041fb6b&amp;gt;] ? lustre_cfg_new+0x33b/0x880 [obdclass]
2011-02-24 15:50:06  [&amp;lt;ffffffffa0427068&amp;gt;] class_config_llog_handler+0x948/0x16b0 [obdclass]
2011-02-24 15:50:06  [&amp;lt;ffffffff81096c9f&amp;gt;] ? up+0x2f/0x50
2011-02-24 15:50:06  [&amp;lt;ffffffffa03f0583&amp;gt;] llog_process_thread+0x9a3/0xe70 [obdclass]
2011-02-24 15:50:06  [&amp;lt;ffffffff810141ca&amp;gt;] child_rip+0xa/0x20
2011-02-24 15:50:06  [&amp;lt;ffffffffa03efbe0&amp;gt;] ? llog_process_thread+0x0/0xe70 [obdclass]
2011-02-24 15:50:06  [&amp;lt;ffffffff810141c0&amp;gt;] ? child_rip+0x0/0x20
2011-02-24 15:50:07 ---[ end trace 608329aca724c429 ]---
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is triggered by calling lookukp_one_len() without holding the inode semaphore.  This patch avoids the warning:&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;diff --git a/lustre/ptlrpc/sec_config.c b/lustre/ptlrpc/sec_config.c
index a8b9630..1a3ec29 100644
--- a/lustre/ptlrpc/sec_config.c
+++ b/lustre/ptlrpc/sec_config.c
@@ -1031,8 +1031,10 @@ &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; sptlrpc_target_local_copy_conf(struct obd_device *obd,
 
         push_ctxt(&amp;amp;saved, &amp;amp;obd-&amp;gt;obd_lvfs_ctxt, NULL);
 
+        LOCK_INODE_MUTEX(cfs_fs_pwd(current-&amp;gt;fs)-&amp;gt;d_inode);
         dentry = lookup_one_len(MOUNT_CONFIGS_DIR, cfs_fs_pwd(current-&amp;gt;fs),
                                 strlen(MOUNT_CONFIGS_DIR));
+        UNLOCK_INODE_MUTEX(cfs_fs_pwd(current-&amp;gt;fs)-&amp;gt;d_inode);
         &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (IS_ERR(dentry)) {
                 rc = PTR_ERR(dentry);
                 CERROR(&lt;span class=&quot;code-quote&quot;&gt;&quot;cannot lookup %s directory: rc = %d\n&quot;&lt;/span&gt;,
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But I&apos;d like someone with better knowledge of this code to weigh in. i.e. would it be better to use ll_lookup_one_len(), or is there a reason we don&apos;t want to take the lock here?  Thanks&lt;/p&gt;</description>
                <environment>RHEL6 x86_64</environment>
        <key id="10424">LU-114</key>
            <summary>WARNING: at fs/namei.c:1332 lookup_one_len+0xf1/0x110()</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</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="johann">Johann Lombardi</assignee>
                                    <reporter username="nedbass">Ned Bass</reporter>
                        <labels>
                    </labels>
                <created>Fri, 4 Mar 2011 11:58:32 +0000</created>
                <updated>Mon, 21 Mar 2011 07:28:57 +0000</updated>
                            <resolved>Mon, 21 Mar 2011 07:28:57 +0000</resolved>
                                    <version>Lustre 2.1.0</version>
                                    <fixVersion>Lustre 2.1.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="10878" author="johann" created="Fri, 4 Mar 2011 13:23:11 +0000"  >&lt;p&gt;You are right, we should just use ll_lookup_one_len() instead of lookup_one_len(), as done in bugzilla ticket 23645.&lt;br/&gt;
I have checked the other places where lookup_one_len() is used and we should be fine now.&lt;/p&gt;</comment>
                            <comment id="10892" author="green" created="Fri, 4 Mar 2011 15:53:52 +0000"  >&lt;p&gt;Johann, I wonder if you can submit a patch for that?&lt;br/&gt;
Thanks.&lt;/p&gt;</comment>
                            <comment id="10895" author="nedbass" created="Fri, 4 Mar 2011 16:17:24 +0000"  >&lt;p&gt;I also came across this line in the course of researching this bug&lt;br/&gt;
at lustre/obdfilter/filter.c:1495:filter_fid2dentry():&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;        dchild = &lt;span class=&quot;code-comment&quot;&gt;/*ll_*/&lt;/span&gt;lookup_one_len(name, dparent, len);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The comment looks like a debugging artifact since the locking in that&lt;br/&gt;
function is handled by filter_parent_lock() and filter_parent_unlock().&lt;br/&gt;
It would be nice to clean that up while we&apos;re at it.  Thanks.&lt;/p&gt;</comment>
                            <comment id="10897" author="pjones" created="Fri, 4 Mar 2011 17:11:00 +0000"  >&lt;p&gt;Assign to Johann&lt;/p&gt;</comment>
                            <comment id="10921" author="johann" created="Mon, 7 Mar 2011 09:08:20 +0000"  >&lt;p&gt;I&apos;ve pushed a patch for review:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#change,303&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,303&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="10922" author="hudson" created="Mon, 7 Mar 2011 09:16:15 +0000"  >&lt;p&gt;Integrated in &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://build.whamcloud.com/images/16x16/blue.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;a href=&quot;http://build.whamcloud.com/job/reviews-centos5/404/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;reviews-centos5 #404&lt;/a&gt;&lt;br/&gt;
     &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-114&quot; title=&quot;WARNING: at fs/namei.c:1332 lookup_one_len+0xf1/0x110()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-114&quot;&gt;&lt;del&gt;LU-114&lt;/del&gt;&lt;/a&gt; use ll_lookup_one_len() instead of lookup_one_len() in sptlrpc_target_local_copy_conf() should lock the parent dir when doing lookup&lt;/p&gt;

&lt;p&gt;Johann Lombardi : &lt;a href=&quot;http://git.whamcloud.com/gitweb/?p=fs/lustre-release.git&amp;amp;a=commit&amp;amp;h=39dc64eb2034bf8fea7f9752ac2b33ff557c442f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;39dc64eb2034bf8fea7f9752ac2b33ff557c442f&lt;/a&gt;&lt;br/&gt;
Files : &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;lustre/ptlrpc/sec_config.c&lt;/li&gt;
	&lt;li&gt;lustre/obdfilter/filter.c&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="11191" author="hudson" created="Thu, 17 Mar 2011 14:15:47 +0000"  >&lt;p&gt;Integrated in &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://build.whamcloud.com/images/16x16/blue.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;a href=&quot;http://build.whamcloud.com/job/reviews-centos5/493/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;reviews-centos5 #493&lt;/a&gt;&lt;br/&gt;
     &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-114&quot; title=&quot;WARNING: at fs/namei.c:1332 lookup_one_len+0xf1/0x110()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-114&quot;&gt;&lt;del&gt;LU-114&lt;/del&gt;&lt;/a&gt; use ll_lookup_one_len() instead of lookup_one_len() in sptlrpc_target_local_copy_conf() should lock the parent dir when doing lookup&lt;/p&gt;

&lt;p&gt;Johann Lombardi : &lt;a href=&quot;http://git.whamcloud.com/gitweb/?p=fs/lustre-release.git&amp;amp;a=commit&amp;amp;h=1d2ac42932a0c7cbcc2f6447750a507d86308580&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;1d2ac42932a0c7cbcc2f6447750a507d86308580&lt;/a&gt;&lt;br/&gt;
Files : &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;lustre/obdfilter/filter.c&lt;/li&gt;
	&lt;li&gt;lustre/ptlrpc/sec_config.c&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="11193" author="hudson" created="Thu, 17 Mar 2011 14:46:41 +0000"  >&lt;p&gt;Integrated in &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://build.whamcloud.com/images/16x16/red.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;a href=&quot;http://build.whamcloud.com/job/lustre-master-centos5/153/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;lustre-master-centos5 #153&lt;/a&gt;&lt;br/&gt;
     &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-114&quot; title=&quot;WARNING: at fs/namei.c:1332 lookup_one_len+0xf1/0x110()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-114&quot;&gt;&lt;del&gt;LU-114&lt;/del&gt;&lt;/a&gt; use ll_lookup_one_len() instead of lookup_one_len() in sptlrpc_target_local_copy_conf() should lock the parent dir when doing lookup&lt;/p&gt;

&lt;p&gt;Oleg Drokin : &lt;a href=&quot;http://git.whamcloud.com/gitweb/?p=fs/lustre-release.git&amp;amp;a=commit&amp;amp;h=d0912bb3a0bf5a14002fb96047c3ea4ce1bfbc0e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;d0912bb3a0bf5a14002fb96047c3ea4ce1bfbc0e&lt;/a&gt;&lt;br/&gt;
Files : &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;lustre/ptlrpc/sec_config.c&lt;/li&gt;
	&lt;li&gt;lustre/obdfilter/filter.c&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="11262" author="johann" created="Mon, 21 Mar 2011 07:28:57 +0000"  >&lt;p&gt;Patch landed for 2.1. Close the bug.&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|hzv9mv:</customfieldvalue>

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