ashmem: avoid deadlock between read and mmap calls

Avoid holding ashmem_mutex across code that can page fault.  Page faults
grab the mmap_sem for the process, which are also held by mmap calls
prior to calling ashmem_mmap, which locks ashmem_mutex.  The reversed
order of locking between the two can deadlock.

The calls that can page fault are read() and the ASHMEM_SET_NAME and
ASHMEM_GET_NAME ioctls.  Move the code that accesses userspace pages
outside the ashmem_mutex.

Bug: 9261835
Change-Id: If1322e981d29c889a56cdc9dfcbc6df2729a45e9
Signed-off-by: Todd Poynor <toddpoynor@google.com>
d2 et al.: disable OABI compat

Commit fefc65c201fc50bd4f22602292bbf48c8df23450 removed the requirement
for OABI compatibility back in April due to TLB crashes, but we still
have it on.

There is no reason I can think of to leave this on.

Change-Id: Idec3a3f4a931db601ad469e892b30eb18be4deed
apexq: allow gpu app locking

Iommu on apexq is not broken like d2 and does not cause watchdog
timeouts on the modem

Change-Id: I98569b2d8e3c93be1050d43f455bbbe89c123e74
AIO: Don't plug the I/O queue in do_io_submit()

Asynchronous I/O latency to a solid-state disk greatly increased
between the 2.6.32 and 3.0 kernels. By removing the plug from
do_io_submit(), we observed a 34% improvement in the I/O latency.

Unfortunately, at this level, we don't know if the request is to
a rotating disk or not.

Change-Id: I7101df956473ed9fd5dcff18e473dd93b688a5c1
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: linux-aio@kvack.org
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Do the panic reboot correctly.

Sometime devicew will reboot by watchdog timeout because device busy
looping in panic process.

bug: 9010664

Change-Id: I484d84214016a039b5d12f38ce132ad1d7f7f244
Signed-off-by: singhome_lee <singhome_lee@asus.com>
Nice doggy