<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:41:30 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-11164] lvbo_*() methods to reuse env</title>
                <link>https://jira.whamcloud.com/browse/LU-11164</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The lvbo methods have to reallocate &lt;tt&gt;lu_env&lt;/tt&gt; every time, which can be quite expensive in terms of CPU cycles at scale.&lt;br/&gt;
The layers above can pass &lt;tt&gt;lu_env&lt;/tt&gt; to reuse existing one.&lt;/p&gt;</description>
                <environment></environment>
        <key id="52783">LU-11164</key>
            <summary>lvbo_*() methods to reuse env</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="bzzz">Alex Zhuravlev</assignee>
                                    <reporter username="bzzz">Alex Zhuravlev</reporter>
                        <labels>
                            <label>perf_optimization</label>
                    </labels>
                <created>Mon, 23 Jul 2018 08:02:20 +0000</created>
                <updated>Fri, 1 Mar 2019 16:01:18 +0000</updated>
                            <resolved>Sat, 6 Oct 2018 13:23:47 +0000</resolved>
                                                    <fixVersion>Lustre 2.12.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="231028" author="jgmitter" created="Sat, 28 Jul 2018 02:44:00 +0000"  >&lt;p&gt;Patch is at&#160;&lt;a href=&quot;https://review.whamcloud.com/#/c/32832/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/32832/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="231929" author="simmonsja" created="Tue, 14 Aug 2018 17:37:48 +0000"  >&lt;p&gt;I see this is marked as upstream. Is that correct?&lt;/p&gt;</comment>
                            <comment id="233091" author="pjones" created="Thu, 6 Sep 2018 03:42:12 +0000"  >&lt;p&gt;No it&apos;s not - thanks for point that out!&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="233993" author="adilger" created="Tue, 25 Sep 2018 22:34:18 +0000"  >&lt;p&gt;Patrick,&lt;br/&gt;
attached is a flame graph ( &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/attachment/31095/31095_ost_io.svg&quot; title=&quot;ost_io.svg attached to LU-11164&quot;&gt;ost_io.svg&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.whamcloud.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; ) showing CPU usage for the OST under a high-throughput random read workload (fake IO used so that no storage overhead is present, just network and RPC processing).  In &lt;tt&gt;ost_lvbo_update()&lt;/tt&gt; the &lt;tt&gt;lu_env_init()&lt;/tt&gt; and &lt;tt&gt;lu_env_fini()&lt;/tt&gt; functions are consuming over 10% of the OSS CPU for basically no benefit.  The  &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/attachment/31096/31096_master-patch-32832.svg&quot; title=&quot;master-patch-32832.svg attached to LU-11164&quot;&gt;master-patch-32832.svg&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.whamcloud.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; flame graph shows the &lt;tt&gt;ost_lvbo_update()&lt;/tt&gt; CPU usage is down to 1.5% when the patch is applied, which resulted in a 6.3% performance improvement for random 4KB reads. Alex, could you please include these results in the commit comment so that it is more clear why we want to land that patch.&lt;/p&gt;

&lt;p&gt;The &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/attachment/31095/31095_ost_io.svg&quot; title=&quot;ost_io.svg attached to LU-11164&quot;&gt;ost_io.svg&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.whamcloud.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; graph is also showing &lt;tt&gt;find_or_create_page()&lt;/tt&gt; using 4.25% of CPU, which drove the creation of patch &lt;a href=&quot;https://review.whamcloud.com/32875&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32875&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11347&quot; title=&quot;Do not use pagecache for SSD I/O when read/write cache are disabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11347&quot;&gt;&lt;del&gt;LU-11347&lt;/del&gt;&lt;/a&gt; osd: do not use pagecache for I/O&lt;/tt&gt;&quot;.&lt;/p&gt;</comment>
                            <comment id="234147" author="sihara" created="Mon, 1 Oct 2018 00:10:25 +0000"  >&lt;p&gt;Here is performance resutls with patches.&lt;br/&gt;
4K ranodm read from 768 processes on 32 clients with fio below.&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;[randread]
ioengine=sync
rw=randread
blocksize=4096
iodepth=16
direct=1
size=4g
runtime=60
numjobs=24
group_reporting
directory=/cache1/fio.out
filename_format=f.$jobnum.$filenum
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;master without patch&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;All clients: (groupid=0, jobs=32): err= 0: pid=0: Mon Oct  1 09:00:53 2018
   read: IOPS=564k, BW=2205Mi (2312M)(129GiB/60006msec)
    clat (usec): min=210, max=228722, avg=1370.30, stdev=623.75
     lat (usec): min=210, max=228722, avg=1370.45, stdev=623.75
   bw (  KiB/s): min= 1192, max=11160, per=0.13%, avg=2911.36, stdev=1003.58, samples=91693
   iops        : min=  298, max= 2790, avg=727.83, stdev=250.90, samples=91693
  lat (usec)   : 250=0.01%, 500=3.09%, 750=4.03%, 1000=11.72%
  lat (msec)   : 2=71.92%, 4=9.13%, 10=0.06%, 20=0.05%, 50=0.01%
  lat (msec)   : 100=0.01%, 250=0.01%
  cpu          : usr=0.19%, sys=1.70%, ctx=33884824, majf=0, minf=49349
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, &amp;gt;=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &amp;gt;=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &amp;gt;=64=0.0%
     issued rwts: total=33867532,0,0,0 short=0,0,0,0 dropped=0,0,0,0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;master with patch 32832&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;All clients: (groupid=0, jobs=32): err= 0: pid=0: Mon Oct  1 00:50:54 2018
   read: IOPS=639k, BW=2497Mi (2619M)(146GiB/60062msec)
    clat (usec): min=202, max=303137, avg=1199.86, stdev=731.66
     lat (usec): min=202, max=303137, avg=1200.01, stdev=731.65
   bw (  KiB/s): min=  624, max=12712, per=0.13%, avg=3319.10, stdev=1131.37, samples=91719
   iops        : min=  156, max= 3178, avg=829.76, stdev=282.84, samples=91719
  lat (usec)   : 250=0.01%, 500=4.35%, 750=4.64%, 1000=21.49%
  lat (msec)   : 2=65.65%, 4=3.70%, 10=0.07%, 20=0.08%, 50=0.01%
  lat (msec)   : 100=0.01%, 250=0.01%, 500=0.01%
  cpu          : usr=0.21%, sys=1.89%, ctx=38418553, majf=0, minf=54483
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, &amp;gt;=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &amp;gt;=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &amp;gt;=64=0.0%
     issued rwts: total=38398687,0,0,0 short=0,0,0,0 dropped=0,0,0,0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;564k vs 639k IOPS. patch contributes 13% performance gain.&lt;/p&gt;</comment>
                            <comment id="234168" author="paf" created="Mon, 1 Oct 2018 15:32:50 +0000"  >&lt;p&gt;Thanks for the detailed benchmark info, Andreas, Ihara.&#160; (Sorry, I was not originally following the LU so did not see the earlier comment.)&lt;/p&gt;</comment>
                            <comment id="234473" author="gerrit" created="Fri, 5 Oct 2018 22:26:51 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/32832/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32832/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11164&quot; title=&quot;lvbo_*() methods to reuse env&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11164&quot;&gt;&lt;del&gt;LU-11164&lt;/del&gt;&lt;/a&gt; ldlm: pass env to lvbo methods&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: e02cb40761ff8aae3df76c4210a345420b6d4ba1&lt;/p&gt;</comment>
                            <comment id="234509" author="simmonsja" created="Fri, 5 Oct 2018 23:03:05 +0000"  >&lt;p&gt;Before we close this has anyone measured metadata performance? I wonder if their was any impact form this work.&lt;/p&gt;</comment>
                            <comment id="234525" author="pjones" created="Sat, 6 Oct 2018 13:23:47 +0000"  >&lt;p&gt;Landed for 2.12. James, perf testing is a standard part of release testing&lt;/p&gt;</comment>
                            <comment id="242658" author="panda" created="Mon, 25 Feb 2019 11:46:11 +0000"  >&lt;p&gt;I&apos;m seeing significant performance drop (-15%) in createmany -o between 2.11 and 2.12. Testing historical commits with a small step shows about 5% performance drop right after this patch.&lt;/p&gt;</comment>
                            <comment id="242660" author="bzzz" created="Mon, 25 Feb 2019 11:59:49 +0000"  >&lt;p&gt;any profiling information?&lt;/p&gt;</comment>
                            <comment id="242661" author="panda" created="Mon, 25 Feb 2019 12:17:53 +0000"  >&lt;p&gt;There&apos;s some profiling information collected during testing in automatic mode. I hope it can be useful.&lt;/p&gt;

&lt;p&gt;There&apos;s no significant difference in open(O_CREAT) processing time, but close() seems to have become slower:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11164&quot; title=&quot;lvbo_*() methods to reuse env&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11164&quot;&gt;&lt;del&gt;LU-11164&lt;/del&gt;&lt;/a&gt;:&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;
 - open/close 5948 (time 1551093589.39 total 10.00 last 594.79)
 - open/close 10000 (time 1551093596.20 total 16.82 last 594.22)
 - open/close 15658 (time 1551093606.20 total 26.82 last 565.79)
total: 20000 open/close in 34.55 seconds: 578.94 ops/second

ll_atomic_open:22765503.0:20000:1138.0 ll_file_release:9271202.0:20000:463.0 ll_inode_revalidate:850446.0:40005:21.0 ll_file_open:326223.0:20000:16.0
lmv_intent_lock:21263116.0:60005:354.0
mdc_enqueue_base:20668025.0:20002:1033.0 mdc_close:8846957.0:20000:442.0 mdc_intent_lock:21006833.0:60005:350.0
ldlm_cli_enqueue:19807126.0:20002:990.0 ldlm_handle_enqueue0:12404488.0:20002:620.0 ldlm_cli_enqueue_fini:870123.0:20002:43.0
ptlrpc_queue_wait:27100485.0:40004:677.0 ptlrpc_server_handle_request:19790070.0:66468:297.0
mdt_reint_open:11116636.0:20000:555.0 mdt_close:2967136.0:20000:148.0 mdt_intent_getattr:147.0:2:73.0
mdd_create:5972754.0:20000:298.0 mdd_create_object:2055115.0:20000:102.0 mdd_trans_start:1641342.0:60000:27.0 mdd_trans_stop:1128474.0:60000:18.0 mdd_update_time:131643.0:20000:6.0 mdd_changelog_ns_store:11204.0:20000:0.0
ldiskfs_create_inode:1199474.0:20000:59.0
 &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;pre-&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11164&quot; title=&quot;lvbo_*() methods to reuse env&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11164&quot;&gt;&lt;del&gt;LU-11164&lt;/del&gt;&lt;/a&gt;:&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;
 - open/close 6245 (time 1551094193.65 total 10.00 last 624.45)
 - open/close 10000 (time 1551094199.67 total 16.02 last 623.75)
 - open/close 15804 (time 1551094209.68 total 26.02 last 580.35)
total: 20000 open/close in 33.23 seconds: 601.83 ops/second

ll_atomic_open:22203052.0:20000:1110.0 ll_file_release:8576370.0:20000:428.0 ll_inode_revalidate:823214.0:40005:20.0 ll_file_open:321143.0:20000:16.0
lmv_intent_lock:20684255.0:60005:344.0
mdc_enqueue_base:20090571.0:20002:1004.0 mdc_close:8149427.0:20000:407.0 mdc_intent_lock:20431136.0:60005:340.0
ldlm_cli_enqueue:19175889.0:20002:958.0 ldlm_handle_enqueue0:12598163.0:20002:629.0 ldlm_cli_enqueue_fini:908190.0:20002:45.0
ptlrpc_queue_wait:25720604.0:40004:642.0 ptlrpc_server_handle_request:19790636.0:41798:473.0
mdt_reint_open:11314481.0:20000:565.0 mdt_close:2930872.0:20000:146.0 mdt_intent_getattr:157.0:2:78.0
mdd_create:6212753.0:20000:310.0 mdd_create_object:2052026.0:20000:102.0 mdd_trans_start:1929037.0:60000:32.0 mdd_trans_stop:1121551.0:60000:18.0 mdd_update_time:130001.0:20000:6.0 mdd_changelog_ns_store:9368.0:20000:0.0
ldiskfs_create_inode:1182995.0:20000:59.0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;open times look similar (1138.0 us vs 1110.0 us per operation, total 22.7 mln us vs 22.2 mln us), but close times have changed (463 us vs 428 us, 10% difference, total 9.2 mln us vs 8.5 mln us).&lt;/p&gt;

&lt;p&gt;The results stay similar for the neighbor commits.&lt;/p&gt;</comment>
                            <comment id="242662" author="bzzz" created="Mon, 25 Feb 2019 12:23:32 +0000"  >&lt;p&gt;did you try to collect some data with say oprofile?&lt;/p&gt;</comment>
                            <comment id="242663" author="bzzz" created="Mon, 25 Feb 2019 12:24:31 +0000"  >&lt;p&gt;yet another option would be to collect rpc_stats on the server side to see is it on the server or client side.&lt;/p&gt;</comment>
                            <comment id="242664" author="panda" created="Mon, 25 Feb 2019 12:33:06 +0000"  >&lt;blockquote&gt;&lt;p&gt;did you try to collect some data with say oprofile?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;No, why? It&apos;s an outdated tool. The ftrace profiling data pasted above is more accurate.&lt;/p&gt;

&lt;p&gt;I will collect additional data for this case if you have no idea why performance dropped.&lt;/p&gt;</comment>
                            <comment id="242665" author="bzzz" created="Mon, 25 Feb 2019 12:50:49 +0000"  >&lt;p&gt;at the moment I don&apos;t understand why passing extra argument to few methods would affect MDS performance that much.&lt;br/&gt;
will keep investigating..&lt;br/&gt;
any additional data is very appreciated.&lt;/p&gt;</comment>
                            <comment id="242668" author="sihara" created="Mon, 25 Feb 2019 14:22:37 +0000"  >&lt;p&gt;Still create ost objects unless there is -m (mknod) option? let me confirm with/without patch.&lt;/p&gt;</comment>
                            <comment id="242669" author="panda" created="Mon, 25 Feb 2019 14:24:22 +0000"  >&lt;blockquote&gt;&lt;p&gt;Still create ost objects unless there is -m (mknod) option? let me confirm with/without patch.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The directory in the test is configured for the DoM layout:&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;
# lfs setstripe -E 1048576 -L mdt .
# createmany -o file 1 20000
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="242816" author="panda" created="Tue, 26 Feb 2019 15:48:20 +0000"  >&lt;p&gt;I&apos;m not an expert in this patch, but isn&apos;t it performing lu_env_init()/lu_env_fini() in ptlrpc_set_wait() when this sequence isn&apos;t really needed?&lt;/p&gt;

&lt;p&gt;This observation seems to be backed by the posted profiling data:&lt;/p&gt;

&lt;p&gt;mdt_close() execution times are equal with and without the patch: 146/148 us, the differences between ll_file_release() and mdc_close() execution times are equal too: 463-442=21=428-407.&lt;/p&gt;

&lt;p&gt;Apparently, the observed performance drop happens between mdc_close() and mdt_close() which smoothly correlates with the possible lu_env_init()/lu_env_fini() overhead in ptlrpc_set_wait().&lt;/p&gt;</comment>
                            <comment id="242819" author="panda" created="Tue, 26 Feb 2019 16:03:10 +0000"  >&lt;p&gt;The following change restores createmany -o performance to that of pre &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11164&quot; title=&quot;lvbo_*() methods to reuse env&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11164&quot;&gt;&lt;del&gt;LU-11164&lt;/del&gt;&lt;/a&gt; for me:&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/client.c b/lustre/ptlrpc/client.c
index 1ea3b9fdc1..f2a994c707 100644
--- a/lustre/ptlrpc/client.c
+++ b/lustre/ptlrpc/client.c
@@ -2327,7 +2327,9 @@ &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; ptlrpc_set_wait(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env, struct ptlrpc_request_set *set)
        struct list_head *tmp;
        struct ptlrpc_request *req;
        struct l_wait_info lwi;
+#&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; 0
        struct lu_env _env;
+#endif
        time64_t timeout;
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; rc;
        ENTRY;
@@ -2345,6 +2347,7 @@ &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; ptlrpc_set_wait(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env, struct ptlrpc_request_set *set)
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (list_empty(&amp;amp;set-&amp;gt;set_requests))
                 RETURN(0);
 
+#&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; 0
        /* ideally we want env provide by the caller all the time,
         * but at the moment that would mean a massive change in
         * LDLM &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; benefits would be close to zero, so just
@@ -2356,6 +2359,7 @@ &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; ptlrpc_set_wait(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env, struct ptlrpc_request_set *set)
                        RETURN(rc);
                env = &amp;amp;_env;
        }
+#endif
 
         &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; {
                 timeout = ptlrpc_set_next_timeout(set);
@@ -2436,8 +2440,10 @@ &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; ptlrpc_set_wait(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env, struct ptlrpc_request_set *set)
                         rc = req-&amp;gt;rq_status;
         }
 
+#&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; 0
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (env &amp;amp;&amp;amp; env == &amp;amp;_env)
                lu_env_fini(&amp;amp;_env);
+#endif
 
        RETURN(rc);
 }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="242945" author="panda" created="Wed, 27 Feb 2019 11:34:04 +0000"  >&lt;p&gt;Alex, Shuichi, what do you think about removing this allocation? Is it crucial for this patch?&lt;/p&gt;</comment>
                            <comment id="242946" author="bzzz" created="Wed, 27 Feb 2019 11:36:40 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=panda&quot; class=&quot;user-hover&quot; rel=&quot;panda&quot;&gt;panda&lt;/a&gt; , I&apos;m testing &lt;a href=&quot;https://review.whamcloud.com/#/c/34333/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34333/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="242953" author="pjones" created="Wed, 27 Feb 2019 13:39:05 +0000"  >&lt;p&gt;Given that &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11164&quot; title=&quot;lvbo_*() methods to reuse env&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11164&quot;&gt;&lt;del&gt;LU-11164&lt;/del&gt;&lt;/a&gt; landed in 2.12.0. which is now released it would be very helpful to move this discussion to a new Jira ticket linked to this one. That will make it easier to track getting the fix landed and included in a 2.12.x maintenance release - thanks!&lt;/p&gt;</comment>
                            <comment id="243012" author="bzzz" created="Thu, 28 Feb 2019 10:51:49 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=panda&quot; class=&quot;user-hover&quot; rel=&quot;panda&quot;&gt;panda&lt;/a&gt; would you please create a new ticket like Peter suggested?&lt;/p&gt;</comment>
                            <comment id="243022" author="panda" created="Thu, 28 Feb 2019 13:44:48 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=bzzz&quot; class=&quot;user-hover&quot; rel=&quot;bzzz&quot;&gt;bzzz&lt;/a&gt;, done: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12034&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.whamcloud.com/browse/LU-12034&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="243023" author="pjones" created="Thu, 28 Feb 2019 13:46:24 +0000"  >&lt;p&gt;Thanks Andrew!&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="53231">LU-11347</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="55028">LU-12034</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="31096" name="master-patch-32832.svg" size="116472" author="adilger" created="Tue, 25 Sep 2018 22:00:53 +0000"/>
                            <attachment id="31095" name="ost_io.svg" size="443483" author="adilger" created="Tue, 25 Sep 2018 21:51:24 +0000"/>
                    </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|hzzzjz:</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>