mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mm/memory-failure.c: fix spinlock vs mutex order
We cannot take a mutex while holding a spinlock, so flip the order and fix the locking documentation. Signed-off-by: Peter Zijlstra <[email protected]> Acked-by: Andi Kleen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
aa2c96d6f3
commit
9b679320a5
2 changed files with 8 additions and 18 deletions
|
|
@ -38,9 +38,8 @@
|
|||
* in arch-dependent flush_dcache_mmap_lock,
|
||||
* within inode_wb_list_lock in __sync_single_inode)
|
||||
*
|
||||
* (code doesn't rely on that order so it could be switched around)
|
||||
* ->tasklist_lock
|
||||
* anon_vma->mutex (memory_failure, collect_procs_anon)
|
||||
* anon_vma->mutex,mapping->i_mutex (memory_failure, collect_procs_anon)
|
||||
* ->tasklist_lock
|
||||
* pte map lock
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue