<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <pre>On 4/3/20 7:38 AM, Nicholas Piggin wrote:</pre>
    <blockquote type="cite"
      cite="mid:1585879413.ubv3w8ta2y.astroid@bobo.none">
      <pre class="moz-quote-pre" wrap="">Ganesh Goudar's on March 30, 2020 5:12 pm:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">From: Santosh S <a class="moz-txt-link-rfc2396E" href="mailto:santosh@fossix.org"><santosh@fossix.org></a>

Introduce notification chain which lets know about uncorrected memory
errors(UE). This would help prospective users in pmem or nvdimm subsystem
to track bad blocks for better handling of persistent memory allocations.

Signed-off-by: Santosh S <a class="moz-txt-link-rfc2396E" href="mailto:santosh@fossix.org"><santosh@fossix.org></a>
Signed-off-by: Ganesh Goudar <a class="moz-txt-link-rfc2396E" href="mailto:ganeshgr@linux.ibm.com"><ganeshgr@linux.ibm.com></a>
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
Do you have any such users yet? It would be good to refer to an example 
user and give a brief description of what it does in its notifier.</pre>
    </blockquote>
    <pre>Santosh has sent a patch which uses this notification.
<a class="moz-txt-link-freetext" href="https://patchwork.ozlabs.org/patch/1265062/">https://patchwork.ozlabs.org/patch/1265062/</a>
</pre>
    <blockquote type="cite"
      cite="mid:1585879413.ubv3w8ta2y.astroid@bobo.none">
      <pre class="moz-quote-pre" wrap="">
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">@@ -263,6 +277,7 @@ static void machine_process_ue_event(struct work_struct *work)
        while (__this_cpu_read(mce_ue_count) > 0) {
                index = __this_cpu_read(mce_ue_count) - 1;
                evt = this_cpu_ptr(&mce_ue_event_queue[index]);
+               blocking_notifier_call_chain(&mce_notifier_list, 0, evt);
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
Can we really use a blocking notifier here? I'm not sure that we can.</pre>
    </blockquote>
    <pre>I think we can, do you see any problem?
</pre>
    <blockquote type="cite"
      cite="mid:1585879413.ubv3w8ta2y.astroid@bobo.none">
      <pre class="moz-quote-pre" wrap="">

Thanks,
Nick
</pre>
    </blockquote>
    <br>
  </body>
</html>