gpu: ion: Fix several issues with page pool
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 13 Dec 2013 22:24:13 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:39 +0000 (08:55 -0800)
commit0fb9b815fe2010e9f8ff4b18bfd2a0ed9cf4eb8d
tree72a3369d94f324661d4a75510b095e431c2eaf4c
parentee4a4986d1a5998ada72c805c040daf759b687be
gpu: ion: Fix several issues with page pool

Split out low and high mem pages so they are correctly reported
when the shrinker is called.
Fix potential deadlock caused by holding the page pool lock while
allocationg and also needing that lock from the shrink function

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_page_pool.c
drivers/staging/android/ion/ion_priv.h
drivers/staging/android/ion/ion_system_heap.c