android_kernel_google_msm/include
Paul E. McKenney aa39813d91 rcu: Make exit_rcu() more precise and consolidate
When running preemptible RCU, if a task exits in an RCU read-side
critical section having blocked within that same RCU read-side critical
section, the task must be removed from the list of tasks blocking a
grace period (perhaps the current grace period, perhaps the next grace
period, depending on timing).  The exit() path invokes exit_rcu() to
do this cleanup.

However, the current implementation of exit_rcu() needlessly does the
cleanup even if the task did not block within the current RCU read-side
critical section, which wastes time and needlessly increases the size
of the state space.  Fix this by only doing the cleanup if the current
task is actually on the list of tasks blocking some grace period.

While we are at it, consolidate the two identical exit_rcu() functions
into a single function.

CRs-fixed: 657837
Change-Id: I59504aedb12064fcd6ce03973d441b547749076a
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: 9dd8fb16c3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[rggupt@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Ramesh Gupta Guntha <rggupt@codeaurora.org>
2016-10-29 23:12:17 +08:00
..
acpi
asm-generic crypto: create generic version of ablk_helper 2016-10-29 23:12:13 +08:00
crypto crypto: sha512 - Expose generic sha512 routine to be callable from other modules 2016-10-29 23:12:14 +08:00
drm msm: kgsl: Add genlock to KGSL DRM driver 2013-09-11 22:41:12 -07:00
keys KEYS: Permit in-place link replacement in keyring list 2016-10-29 23:12:12 +08:00
linux rcu: Make exit_rcu() more precise and consolidate 2016-10-29 23:12:17 +08:00
math-emu
media Fix header list when building with Android 2016-10-29 23:12:09 +08:00
misc
mtd
net net: add validation for the socket syscall protocol argument 2016-10-29 23:12:11 +08:00
pcmcia
rdma
rxrpc
scsi
sound ASoC: add definations for compressed operations 2013-04-18 16:08:45 -07:00
target
trace rcu: Add RCU_FAST_NO_HZ tracing for idle exit 2016-10-29 23:12:17 +08:00
video
xen
Kbuild