<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:59: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-6399] Libcfs socket cleanup</title>
                <link>https://jira.whamcloud.com/browse/LU-6399</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The ioctl request was designed to get all needed information through socket from usermode. But the same patterns with tricks was used at kernel by linux libcfs. The patch changes this behavior from socket to kernel socket.  For libcfs_sock_ioctl tricks with usermode call removed, kernel_sock_ioctl is used instead. But this call handle SIOCGIFADDR and SIOCGIFNETMASK. For SIOCGIFFLAGS we take device flag directly.  Function libcfs_ipif_enumerate() which are used SIOCGIFCONF command  totally rewriten to get device names without ioctl requests.&lt;/p&gt;</description>
                <environment></environment>
        <key id="29233">LU-6399</key>
            <summary>Libcfs socket cleanup</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="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="ashehata">Amir Shehata</assignee>
                                    <reporter username="aboyko">Alexander Boyko</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Wed, 25 Mar 2015 16:06:00 +0000</created>
                <updated>Sat, 19 Nov 2022 17:32:35 +0000</updated>
                            <resolved>Mon, 21 May 2018 17:04:44 +0000</resolved>
                                                    <fixVersion>Lustre 2.12.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="110621" author="gerrit" created="Wed, 25 Mar 2015 16:07:36 +0000"  >&lt;p&gt;Alexander Boyko (alexander.boyko@seagate.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/14179&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14179&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6399&quot; title=&quot;Libcfs socket cleanup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6399&quot;&gt;&lt;del&gt;LU-6399&lt;/del&gt;&lt;/a&gt; libcfs: socket cleanup&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d6c455bc33245bb6dfc3b594f0df8cd5f064cc00&lt;/p&gt;</comment>
                            <comment id="110903" author="green" created="Fri, 27 Mar 2015 19:10:07 +0000"  >&lt;p&gt;While working in this area, also need to keep in mind how to better tie this into upstream kernel works, there were some run-ups into our use of network ioctls in the past that led to some breakage even, so neatifying that code would be great too.&lt;/p&gt;</comment>
                            <comment id="113310" author="simmonsja" created="Fri, 24 Apr 2015 15:38:33 +0000"  >&lt;p&gt;Amir, Isaac, or Liang can you take a look at this patch.&lt;/p&gt;</comment>
                            <comment id="228248" author="gerrit" created="Mon, 21 May 2018 16:51:43 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/14179/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/14179/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6399&quot; title=&quot;Libcfs socket cleanup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6399&quot;&gt;&lt;del&gt;LU-6399&lt;/del&gt;&lt;/a&gt; lnet: socket cleanup&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: e37335b2d8c2dc74badea8978ab3f46a63621265&lt;/p&gt;</comment>
                            <comment id="239451" author="jfilizetti" created="Mon, 7 Jan 2019 14:36:12 +0000"  >&lt;p&gt;Patch&#160;e37335b2d8c2dc74badea8978ab3f46a63621265 breaks the ability to use IP address labels similar to the following.&#160; This worked in 2.10:&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;[root@test-2 ~]# ip addr add 10.10.3.25/16 dev ib0 label ib0:ld
[root@test-2 ~]# modprobe lustre
modprobe: ERROR: could not insert &apos;lustre&apos;: Network is down
[root@test-2 ~]# dmesg
[250263.134595] LNet: HW NUMA nodes: 2, HW CPU cores: 56, npartitions: 2
[250263.138270] alg: No test for adler32 (adler32-zlib)
[250263.954199] Lustre: Lustre: Build Version: 2.12.50_45_g0af247b
[250264.176689] LNet: Using FastReg for registration
[250264.491592] LNet: Added LNI 10.10.3.22@o2ib [128/2048/0/180]
[250264.491629] LNetError: 268850:0:(lib-socket.c:105:lnet_ipif_query()) Can&apos;t get flags for interface ib0:ld
[250264.501305] LNetError: 268850:0:(o2iblnd.c:2879:kiblnd_create_dev()) Can&apos;t query IPoIB interface ib0:ld: -19
[250264.511224] LNetError: 105-4: Error -100 starting up LNI o2ib
[250265.960442] LNet: Removed LNI 10.10.3.22@o2ib
[250265.960780] LustreError: 268850:0:(events.c:625:ptlrpc_init_portals()) network initialisation failed
[root@test-2 ~]# grep network /etc/modprobe.d/lustre.conf
options lnet networks=o2ib(ib0),o2ib1(ib0:ld),tcp0(eno1)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The -ENODEV comes from lnet/lnet/lib-socket.c line 73:&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; 46 static int
 47 lnet_sock_ioctl(int cmd, unsigned long arg)
 48 {
...
 62         if (cmd == SIOCGIFFLAGS) {
 63                 /* This cmd is used only to get IFF_UP flag */
 64                 struct ifreq *ifr = (struct ifreq *) arg;
 65                 struct net_device *dev;
 66 
 67                 dev = dev_get_by_name(sock_net(sock-&amp;gt;sk), ifr-&amp;gt;ifr_name);
 68                 if (dev) {
 69                         ifr-&amp;gt;ifr_flags = dev-&amp;gt;flags;
 70                         dev_put(dev);
 71                         rc = 0;
 72                 } else {
 73                         rc = -ENODEV;
 74                 }
 75         } else {
 76                 rc = kernel_sock_ioctl(sock, cmd, arg);
 77         }
 78         sock_release(sock);
 79 
 80         return rc;
 81 }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="239452" author="simmonsja" created="Mon, 7 Jan 2019 14:51:58 +0000"  >&lt;p&gt;I need to rework this code to support newer kernels (4.18) since kernel_sock_ioctl() has disappeared. Would you be wiling to try those patches.&lt;/p&gt;</comment>
                            <comment id="239455" author="jfilizetti" created="Mon, 7 Jan 2019 15:42:50 +0000"  >&lt;p&gt;Sure&lt;/p&gt;</comment>
                            <comment id="239457" author="simmonsja" created="Mon, 7 Jan 2019 16:27:12 +0000"  >&lt;p&gt;See ticket &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11838&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.whamcloud.com/browse/LU-11838&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Its going to take me a bit to get everything ready.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="54680">LU-11893</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="54446">LU-11838</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|hzx9bj:</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>