Revert "mm/page_io: remove duplicated compressed pages in memory"

This reverts commit 591f3c48ea0485ab92c99ed894b225b319463cf5.
Revert "binfmt_elf.c: use get_random_int() to fix entropy depleting (Jeff Liu )"

This reverts commit 631c060cfad203b0130433478b74689ef0c50135.
Revert "ARM: SMP: use a timing out completion for cpu hotplug"

This reverts commit b682a6dbf96e1eeeb68099c87333460dba177c85.
Revert "backport: smp: patches from mainline 3.5 to hopefully help with hotplug"

This reverts commit 2bf11e64d6faabe2d37107b62fbaf25bcf2b55b7.
Revert "mutex: dynamically disable mutex spinning at high load Date Thu, 4 Apr 2013 10:54:18 -0400"

This reverts commit 46b7c1579b2f50ed6c55ae0b231b6adb2f0c5385.
Revert "mutex: restrict mutex spinning to only one task per mutex"

This reverts commit b2421c99138e8d28710fb1a2cbc0d11a80abba20.
Revert "mutex: Make more scalable by doing less atomic operations"

This reverts commit ba3d5e6ca855012a8b24212cec5d5f57ee20d605.
Switch to GCChf 4.9.1 linaro cortex-a9 optimised toolchain
Squash Updates: zram,zcache,zsmalloc,snappy,lz4,lzo,cleancache
lib: Add support for LZ4-compressed kernel

Date    Tue, 26 Feb 2013 15:24:28 +0900

This patch adds support for extracting LZ4-compressed kernel images,
as well as LZ4-compressed ramdisk images in the kernel boot process.

This depends on the patch below
decompressor: Add LZ4 decompressor module

Signed-off-by: Kyungsik Lee <kyungsik.lee@lge.com>

v2:
- Clean up code
- Use lz4_decompress() for LZ4-compressed kernel during boot-process

Signed-off-by: Paul Reioux <reioux@gmail.com>
arm: Add support for LZ4-compressed kernel

Date    Tue, 26 Feb 2013 15:24:29 +0900

This patch integrates the LZ4 decompression code to the arm pre-boot code.
And it depends on two patchs below

lib: Add support for LZ4-compressed kernel
decompressor: Add LZ4 decompressor module

Signed-off-by: Kyungsik Lee <kyungsik.lee@lge.com>

v2:
- Apply CFLAGS, -Os to decompress.o to improve decompress
  performance during boot-up process

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:
	arch/arm/boot/compressed/Makefile
	arch/arm/boot/compressed/decompress.c

Change-Id: I5c170fba381fc1d0db5bb9e0c1e9b4e42a0b879d
slicing-by-8 algorithm for crc32 and crc32c
bcmdhd: Restore previous 1.28.19.4 (RC2_1130) driver (Ketut Kumajaya)
dm: suppress endian warnings

Suppress sparse warnings about cpu_to_le32() by using __le32 types for
on-disk data etc.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
dm: ignore merge_bvec for snapshots when safe

Add a new flag DMF_MERGE_IS_OPTIONAL to struct mapped_device to indicate
whether the device can accept bios larger than the size its merge
function returns.  When set, use this to send large bios to snapshots
which can split them if necessary.  Snapshot I/O may be significantly
fragmented and this approach seems to improve peformance.

Before the patch, dm_set_device_limits restricted bio size to page size
if the underlying device had a merge function and the target didn't
provide a merge function.  After the patch, dm_set_device_limits
restricts bio size to page size if the underlying device has a merge
function, doesn't have DMF_MERGE_IS_OPTIONAL flag and the target doesn't
provide a merge function.

The snapshot target can't provide a merge function because when the merge
function is called, it is impossible to determine where the bio will be
remapped.  Previously this led us to impose a 4k limit, which we can
now remove if the snapshot store is located on a device without a merge
function.  Together with another patch for optimizing full chunk writes,
it improves performance from 29MB/s to 40MB/s when writing to the
filesystem on snapshot store.

If the snapshot store is placed on a non-dm device with a merge function
(such as md-raid), device mapper still limits all bios to page size.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
dm table: share target argument parsing functions

Move multipath target argument parsing code into dm-table so other
targets can share it.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
dm crypt: optionally support discard requests

Add optional parameter field to dmcrypt table and support
"allow_discards" option.

Discard requests bypass crypt queue processing. Bio is simple remapped
to underlying device.

Note that discard will be never enabled by default because of security
consequences.  It is up to the administrator to enable it for encrypted
devices.

(Note that userspace cryptsetup does not understand new optional
parameters yet.  Support for this will come later.  Until then, you
should use 'dmsetup' to enable and disable this.)

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
kernel/signal.c : fix build warning
Updated v4.0 defconfigs