Re: [PATCH v5] CPU hotplug: active_writer not woken up in some cases - deadlock

2014-12-14 Thread Oleg Nesterov
On 12/12, David Hildenbrand wrote: > > void get_online_cpus(void) > { > @@ -103,8 +95,7 @@ void get_online_cpus(void) > return; > cpuhp_lock_acquire_read(); > mutex_lock(&cpu_hotplug.lock); > - apply_puts_pending(65536); > - cpu_hotplug.refcount++; > + atomic

Re: [PATCH v5] CPU hotplug: active_writer not woken up in some cases - deadlock

2014-12-12 Thread Paul E. McKenney
On Fri, Dec 12, 2014 at 10:11:44AM +0100, David Hildenbrand wrote: > Commit b2c4623dcd07 ("rcu: More on deadlock between CPU hotplug and expedited > grace periods") introduced another problem that can easily be reproduced by > starting/stopping cpus in a loop. > > E.g.: > for i in `seq 5000`; do