summaryrefslogtreecommitdiff
path: root/kernel/gcov/gcov.h
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2010-04-27 20:57:04 -0700
committerIliyan Malchev <malchev@google.com>2011-05-23 15:43:37 -0700
commit5970609feaec5533cc31654fcf1ca95c2e9af64e (patch)
tree58bdd515230e8a928f66377171420541c7bd570b /kernel/gcov/gcov.h
parent82940f4bd7f2c5bcfe0192e3fe5a3cedb9a75ca5 (diff)
[ARM] Do not call flush_cache_user_range with mmap_sem held
We can't be holding the mmap_sem while calling flush_cache_user_range because the flush can fault. If we fault on a user address, the page fault handler will try to take mmap_sem again. Since both places acquire the read lock, most of the time it succeeds. However, if another thread tries to acquire the write lock on the mmap_sem (e.g. mmap) in between the call to flush_cache_user_range and the fault, the down_read in do_page_fault will deadlock. Also, since we really can't be holding the mmap_sem while calling flush_cache_user_range AND vma is actually unused by the flush itself, get rid of vma as an argument. Change-Id: If55409bde41ad1060fa4fe7cbd4ac530d4d9a106 Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'kernel/gcov/gcov.h')
0 files changed, 0 insertions, 0 deletions