Staging: android: binder: Fix memory leak on thread/process exit

If a thread or process exited while a reply, one-way transaction or
death notification was pending, the struct holding the pending work
was leaked.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Conflicts:
	drivers/staging/android/binder.c

Conflicts:

	drivers/staging/android/binder.c
revert last commit
Revert "revert last commit"

This reverts commit 2e6b493c94a9d6c4dd05d92fe018b0a7755817d0.
Revert "Staging: android: binder: Fix memory leak on thread/process exit"

This reverts commit 80dba63c3dacaeebc2e6d1c458a7542e01709cf5.
update mpdecision

kernel tuner will show tuneables for four cpus, but this does not affect functionality on our dual core device.
block: row: hardcode values research by the community

Change-Id: I1eb34c2168f40c829cff0a4244c5fc16b5200ae0
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>

Conflicts:

	block/row-iosched.c
Backport AIO (Asynchronous IO) from Linux 3.5

Conflicts:
	arch/arm/configs/aries_galaxysmtd_defconfig
Set of improvements to Staging-binder

This is a squash of the following commits:
____________________________________________________
Staging: android: fixed a space warning in binder.h

Signed-off-by: Marco Navarra <fromenglish@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
____________________________________________________
Staging: android: binder: Don't call dump_stack in binder_vma_open
Staging: android: binder: Fix crashes when sharing a binder file between processes
Staging: android: binder: Fix memory leak on thread/process exit
Staging: android: binder: Allow using highmem for binder buffers
Staging: android: binder: Fix use-after-free bug

Signed-off-by: Arve HjÃ¸nnevÃ¥g <arve@android.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
____________________________________________________
staging: android: Fix two checkpatch issues in binder.c
staging: android: Avoid using camelcase in binder.h

Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
____________________________________________________

Change-Id: I84d974702329bd083e57bf3c95a0123ba6504d8c
tmpfs: fix mempolicy object leaks

This patch fixes several mempolicy leaks in the tmpfs mount logic.
These leaks are slow - on the order of one object leaked per mount
attempt.

Leak 1 (umount doesn't free mpol allocated in mount):
    while true; do
        mount -t tmpfs -o mpol=interleave,size=100M nodev /mnt
        umount /mnt
    done

Leak 2 (errors parsing remount options will leak mpol):
    mount -t tmpfs -o size=100M nodev /mnt
    while true; do
        mount -o remount,mpol=interleave,size=x /mnt 2> /dev/null
    done
    umount /mnt

Leak 3 (multiple mpol per mount leak mpol):
    while true; do
        mount -t tmpfs -o mpol=interleave,mpol=interleave,size=100M nodev /mnt
        umount /mnt
    done

This patch fixes all of the above.  I could have broken the patch into
three pieces but is seemed easier to review as one.

Signed-off-by: Greg Thelen <gthelen@google.com>
modified for Mako kernel from LKML reference

Signed-off-by: faux123 <reioux@gmail.com>
Add new scheduler: BFQ-v6 for 3.0

Change-Id: I40f4458284d4d086b47ee73c4d79c8b13458955f

Conflicts:

	arch/arm/configs/aries_galaxysmtd_defconfig
	block/Makefile

Conflicts:
	arch/arm/configs/sultan-intl_defconfig
	block/Kconfig.iosched
	block/Makefile

Conflicts:
	block/Kconfig.iosched

Conflicts:
	block/Kconfig.iosched
	block/Makefile
	block/bfq-cgroup.c
	block/bfq-ioc.c
	block/bfq-iosched.c
	block/bfq-sched.c
	block/bfq.h

Conflicts:

	block/bfq-cgroup.c
	block/bfq-ioc.c
	block/bfq-iosched.c
	block/bfq-sched.c
	block/bfq.h
Set the bfq_slice_idle value 0

Conflicts:

	block/bfq-iosched.c
tune CFQ
revert this
Revert "revert this"

This reverts commit 27e5d1d765d2c7b1fd9835e21e192523df59accc.
Revert "Add new scheduler: BFQ-v5r1 for 3.0"

This reverts commit 569c50d13ed988eca62263fefa9da68bd73e37b7.

Conflicts:

	block/bfq-iosched.c
BFQ v6 proper...