]> git.karo-electronics.de Git - linux-beck.git/commit
gpu: ion: Fix lockdep issue in ion_page_pool
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 13 Dec 2013 22:24:14 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:39 +0000 (08:55 -0800)
commitefee5a0c62d827c0eca7044c2d14dd3324b325aa
tree21293ea693434787a3421d468cf861c98ca12d78
parent0fb9b815fe2010e9f8ff4b18bfd2a0ed9cf4eb8d
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.

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