lkml.org 
[lkml]   [2017]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 2/5] cpu-hotplug: Allow get_online_cpus() to nest
On Fri, 12 May 2017, Steven Rostedt wrote:
> void get_online_cpus(void)
> {
> +#ifdef CONFIG_LOCKDEP
> + if (current->goc_depth++)
> + return;

This must be unconditional and not depend on lockdep. The percpu rwsem is
going to deadlock silently otherwise when a writer is waiting ....

Thanks,

tglx

\
 
 \ /
  Last update: 2017-05-13 00:16    [W:0.363 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site