1. 09 6月, 2017 37 次提交
  2. 08 6月, 2017 3 次提交
    • P
      rcu: Use RCU_NOCB_WAKE rather than RCU_NOGP_WAKE · 511324e4
      Paul E. McKenney 提交于
      The RCU_NOGP_WAKE_NOT, RCU_NOGP_WAKE, and RCU_NOGP_WAKE_FORCE flags
      are used to mediate wakeups for the no-CBs CPU kthreads.  The "NOGP"
      really doesn't make any sense, so this commit does s/NOGP/NOCB/.
      Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      511324e4
    • P
      sched: Rely on synchronize_rcu_mult() de-duplication · d7d34d5e
      Paul E. McKenney 提交于
      The synchronize_rcu_mult() function now detects duplicate requests
      for the same grace-period flavor and waits only once for each flavor.
      This commit therefore removes the ugly #ifdef from sched_cpu_deactivate()
      because synchronize_rcu_mult(call_rcu, call_rcu_sched) now does what
      the #ifdef used to be needed for.
      Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      d7d34d5e
    • P
      rcu: Make synchronize_rcu_mult() check for duplicates · 68ab0b42
      Paul E. McKenney 提交于
      Currently, doing synchronize_rcu_mult(call_rcu, call_rcu) might
      (or might not) wait for two RCU grace periods.  One approach is
      of course "don't do that!", but in CONFIG_PREEMPT=n kernels,
      synchronize_rcu_mult(call_rcu, call_rcu_sched) does exactly that.
      This results in an ugly #ifdef in sched_cpu_deactivate().
      
      This commit therefore makes __wait_rcu_gp() check for duplicates,
      which in turn allows duplicates to be passed to synchronize_rcu_mult()
      without risk of waiting twice on the same type of grace period.
      Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      68ab0b42