1. Aug 29, 2019
    • Thomas Gleixner's avatar
      posix-cpu-timers: Make expiry_active check actually work correctly · a2ed4fd6
      Thomas Gleixner authored
      The state tracking changes broke the expiry active check by not writing to
      it and instead sitting timers_active, which is already set.
      
      That's not a big issue as the actual expiry is protected by sighand lock,
      so concurrent handling is not possible. That means that the second task
      which invokes that function executes the expiry code for nothing.
      
      Write to the proper flag.
      
      Also add a check whether the flag is set into check_process_timers(). That
      check had been missing in the code before the rework already. The check for
      another task handling the expiry of process wide timers was only done in
      the fastpath check. If the fastpath check returns true because a per task
      timer expired, then the checking of process wide timers was done in
      parallel which is as explained above just a waste of cycles.
      
      Fixes: 244d49e3
      
       ("posix-cpu-timers: Move state tracking to struct posix_cputimers")
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Frederic Weisbecker <frederic@kernel.org>
      a2ed4fd6
    • Thomas Gleixner's avatar
      posix-timers: Unbreak CONFIG_POSIX_TIMERS=n build · 8f2edb4a
      Thomas Gleixner authored
      The rework of the posix-cpu-timers patch series dropped the empty
      declaration of struct cpu_timer for the CONFIG_POSIX_TIMERS=n case which
      causes the build to fail:
      
      ./include/linux/posix-timers.h:218:20: error: field 'cpu' has incomplete type
      
      Add it back.
      
      Fixes: 60bda037
      
       ("posix-cpu-timers: Utilize timerqueue for storage")
      Reported-by: default avatarIngo Molnar <mingo@kernel.org>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      8f2edb4a
  2. Aug 28, 2019