diff options
| author | Sherry Yang <[email protected]> | 2017-10-21 00:58:58 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-10-21 08:14:20 +0000 |
| commit | a0c2baaf81bd53dc76fccdddc721ba7dbb62be21 (patch) | |
| tree | 0104ebfb31019168be252bc006e4689674cd8dcf /drivers/android/binder_alloc.h | |
| parent | vmbus: hvsock: add proper sync for vmbus_hvsock_device_unregister() (diff) | |
| download | kernel-a0c2baaf81bd53dc76fccdddc721ba7dbb62be21.tar.gz kernel-a0c2baaf81bd53dc76fccdddc721ba7dbb62be21.zip | |
android: binder: Don't get mm from task
Use binder_alloc struct's mm_struct rather than getting
a reference to the mm struct through get_task_mm to
avoid a potential deadlock between lru lock, task lock and
dentry lock, since a thread can be holding the task lock
and the dentry lock while trying to acquire the lru lock.
Acked-by: Arve Hjønnevåg <[email protected]>
Signed-off-by: Sherry Yang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/android/binder_alloc.h')
| -rw-r--r-- | drivers/android/binder_alloc.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/android/binder_alloc.h b/drivers/android/binder_alloc.h index a3a3602c689c..2dd33b6df104 100644 --- a/drivers/android/binder_alloc.h +++ b/drivers/android/binder_alloc.h @@ -100,7 +100,6 @@ struct binder_lru_page { */ struct binder_alloc { struct mutex mutex; - struct task_struct *tsk; struct vm_area_struct *vma; struct mm_struct *vma_vm_mm; void *buffer; |
