gpu: ion: Fix lockdep issue in ion_page_pool
authorRebecca Schultz Zavin <rebecca@android.com>
Wed, 10 Oct 2012 17:34:50 +0000 (10:34 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:11 +0000 (14:16 -0700)
commit15da191d8fdf3ebd8aed546461d17ac0714be47a
treeae902834cd00d53823bbae9b394fa4b781a2c383
parentcb80c2ec451c3beb042bab7aa22a129fa5488121
gpu: ion: Fix lockdep issue in ion_page_pool

Currently the mutex is held while kmalloc is called, under a low memory
condition this might trigger the shrinker which also takes this mutex.
Refactor so the mutex is not held during allocation.

Change-Id: Ic1d3b2f69e61209191bac84724ba56f6b98e2bc4
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion_page_pool.c