[PATCH 2/3] oprofile: reduce mmap_sem hold for mm->exe_file

2015-02-25 Thread Davidlohr Bueso
sync_buffer() needs the mmap_sem for two distinct operations, both only occurring upon user context switch handling: 1) Dealing with the exe_file. 2) Adding the dcookie data as we need to lookup the vma that backs it. This is done via add_sample() and add_data(). This patch isolates 1),

[PATCH 2/3] oprofile: reduce mmap_sem hold for mm-exe_file

2015-02-25 Thread Davidlohr Bueso
sync_buffer() needs the mmap_sem for two distinct operations, both only occurring upon user context switch handling: 1) Dealing with the exe_file. 2) Adding the dcookie data as we need to lookup the vma that backs it. This is done via add_sample() and add_data(). This patch isolates 1),