android_kernel_samsung_msm8976/kernel/rcu
Paul E. McKenney c1a53b8056 rcu: Don't disable CPU hotplug during OOM notifiers
RCU's rcu_oom_notify() disables CPU hotplug in order to stabilize the
list of online CPUs, which it traverses.  However, this is completely
pointless because smp_call_function_single() will quietly fail if invoked
on an offline CPU.  Because the count of requests is incremented in the
rcu_oom_notify_cpu() function that is remotely invoked, everything works
nicely even in the face of concurrent CPU-hotplug operations.

Furthermore, in recent kernels, invoking get_online_cpus() from an OOM
notifier can result in deadlock.  This commit therefore removes the
call to get_online_cpus() and put_online_cpus() from rcu_oom_notify().

Change-Id: Ib5cfc417a7481ae0ee9ae2ee82b88a73b2d12a89
Reported-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
Reported-by: David Rientjes <rientjes@google.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: David Rientjes <rientjes@google.com>
Tested-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
Git-commit: 9a54f98e341d09793247a6e598012edefb5ae7cb
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2016-01-06 23:11:06 -08:00
..
Makefile
rcu.h
srcu.c
tiny.c
tiny_plugin.h
torture.c
tree.c rcu: Use rcu_gp_kthread_wake() to wake up grace period kthreads 2015-06-22 10:34:49 +05:30
tree.h rcu: Make callers awaken grace-period kthread 2015-06-22 10:34:42 +05:30
tree_plugin.h rcu: Don't disable CPU hotplug during OOM notifiers 2016-01-06 23:11:06 -08:00
tree_trace.c
update.c