• Paul E. McKenney's avatar
    srcu: Make Tiny SRCU explicitly disable preemption · 65b4a595
    Paul E. McKenney authored
    Because Tiny SRCU is used only in kernels built with either
    CONFIG_PREEMPT_NONE=y or CONFIG_PREEMPT_VOLUNTARY=y, there has not
    been any need for TINY SRCU to explicitly disable preemption.  However,
    the prospect of lazy preemption changes that, and the lazy-preemption
    patches do result in rcutorture runs finding both too-short grace periods
    and grace-period hangs for Tiny SRCU.
    
    This commit therefore adds the needed preempt_disable() and
    preempt_enable() calls to Tiny SRCU.
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    Cc: Ankur Arora <ankur.a.arora@oracle.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarUladzislau Rezki (Sony) <urezki@gmail.com>
    65b4a595
srcutiny.c 8.43 KB