lkml.org 
[lkml]   [2018]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC 2/2] rcu: Remove ->dynticks_nmi_nesting from struct rcu_dynticks
On Thu, Jun 21, 2018 at 07:08:30PM +0900, Byungchul Park wrote:
> On Thu, Jun 21, 2018 at 03:39:49PM +0900, Byungchul Park wrote:
>
> [...]
>
> > I applied what you suggested and re-named rcu_nmi_{enter,exit} to
> ^
> rcu_nmi_{enter,exit}_common(bool irq)
>
> > rcu_irq_{enter,exit} and applied the same re-naming to
> ^
> rcu_irq_{enter,exit}_common(bool nmi)
>
> > ->dynticks_nmi_nesting as well, since those are not things to do with
> ^
> dynticks_nmi_nesting -> dynticks_irq_nesting
>
> > nmi anymore but both irq and nmi.
> >
> > I think "irq" is better to represent both irq and nmi than "nmi".
> > Please let me know if you don't think so. I can get rid of the re-
> > naming from the patch.

Again, we need to keep "nmi". There is a lot of irq-safe code in the
Linux kernel, but not so much nmi-safe code, so we need to give the
reader as many hints as we can that this code is unusual.

Thanx, Paul

\
 
 \ /
  Last update: 2018-06-21 17:04    [W:0.095 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site