lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170524162600.GF3956@linux.vnet.ibm.com>
Date:   Wed, 24 May 2017 09:26:00 -0700
From:   "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
To:     Thomas Gleixner <tglx@...utronix.de>
Cc:     LKML <linux-kernel@...r.kernel.org>,
        Peter Zijlstra <peterz@...radead.org>,
        Ingo Molnar <mingo@...nel.org>,
        Steven Rostedt <rostedt@...dmis.org>,
        Sebastian Siewior <bigeasy@...utronix.de>
Subject: Re: [patch V3 02/32] cpu/hotplug: Provide lockdep_assert_cpus_held()

On Wed, May 24, 2017 at 10:15:13AM +0200, Thomas Gleixner wrote:
> Provide a stub function which can be used in places where existing
> get_online_cpus() calls are moved to call sites.
> 
> This stub is going to be filled by the final conversion of the hotplug
> locking mechanism to a percpu rwsem.
> 
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>

Acked-by: Paul E. McKenney <paulmck@...ux.vnet.ibm.com>

> ---
>  include/linux/cpu.h |    2 ++
>  1 file changed, 2 insertions(+)
> 
> --- a/include/linux/cpu.h
> +++ b/include/linux/cpu.h
> @@ -103,6 +103,7 @@ extern void cpus_write_lock(void);
>  extern void cpus_write_unlock(void);
>  extern void cpus_read_lock(void);
>  extern void cpus_read_unlock(void);
> +static inline void lockdep_assert_cpus_held(void) { }
>  extern void cpu_hotplug_disable(void);
>  extern void cpu_hotplug_enable(void);
>  void clear_tasks_mm_cpumask(int cpu);
> @@ -114,6 +115,7 @@ static inline void cpus_write_lock(void)
>  static inline void cpus_write_unlock(void) { }
>  static inline void cpus_read_lock(void) { }
>  static inline void cpus_read_unlock(void) { }
> +static inline void lockdep_assert_cpus_held(void) { }
>  static inline void cpu_hotplug_disable(void) { }
>  static inline void cpu_hotplug_enable(void) { }
>  #endif	/* !CONFIG_HOTPLUG_CPU */
> 
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ