Re: [PATCH 51/51] net/iucv/iucv.c: Fix CPU hotplug callback registration

2014-02-06 Thread David Miller
From: David Miller Date: Thu, 06 Feb 2014 20:39:35 -0800 (PST) > Applied. I just realized that this has a dependency not in the 'net' tree, so I reverted and assume you will merge this with the patch that provides the necessary interface(s). Signed-off-by: David S. Miller -- To unsubscribe fro

Re: [PATCH 51/51] net/iucv/iucv.c: Fix CPU hotplug callback registration

2014-02-06 Thread David Miller
From: "Srivatsa S. Bhat" Date: Thu, 06 Feb 2014 03:43:55 +0530 > Subsystems that want to register CPU hotplug callbacks, as well as perform > initialization for the CPUs that are already online, often do it as shown > below: ... > This is wrong, since it is prone to ABBA deadlocks involving the

[PATCH 51/51] net/iucv/iucv.c: Fix CPU hotplug callback registration

2014-02-05 Thread Srivatsa S. Bhat
Subsystems that want to register CPU hotplug callbacks, as well as perform initialization for the CPUs that are already online, often do it as shown below: get_online_cpus(); for_each_online_cpu(cpu) init_cpu(cpu); register_cpu_notifier(&foobar_cpu_notifie