Re: [PATCH v3] CPU hotplug: active_writer not woken up in some cases - deadlock
From: Oleg Nesterov
Date: Tue Dec 09 2014 - 20:20:26 EST
On 12/09, Paul E. McKenney wrote:
> Would wait_event()/wake_up() work for the wakeup-writer case?
Yes, and in this case we could probably kill this puts_pending logic
and avoid cpu_hotplug.lock in put_online_cpus() altogether? Can't we
just make cpu_hotplug.refcount atomic_t?
Anyway, this makes me think again that this code should use percpu_rwsem.
Perhaps I'll try to make a patch next week...
(we need down_write_recursive_readers(), and probably rcusync patches).
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/