<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 31, 2019 at 4:17 PM Li Wang <<a href="mailto:liwang@redhat.com">liwang@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 31, 2019 at 2:45 PM Eric Lin <<a href="mailto:tesheng@andestech.com" target="_blank">tesheng@andestech.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">When doing save_nr_hugepages() in setup() and there<br>
is no Huge page support in system, it will call<br>
cleanup() and write wrong orig_shmmax and orig_shmmni<br>
value back to file.<br>
<br>
To fix it, we initialize the orig_shmmax and<br>
orig_shmmni to -1 and check it in cleanup().<br>
<br>
Signed-off-by: Eric Lin <<a href="mailto:tesheng@andestech.com" target="_blank">tesheng@andestech.com</a>> </blockquote></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><span class="gmail_default" style="font-size:small">Reviewed-by: Li Wang <<a href="mailto:liwang@redhat.com" target="_blank">liwang@redhat.com</a>></span></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-size:small">Pushed.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>