[PATCH 05/10] uprobes: share the i_mmap_rwsem

2014-10-30 Thread Davidlohr Bueso
Both register and unregister call build_map_info() in order to create the list of mappings before installing or removing breakpoints for every mm which maps file backed memory. As such, there is no reason to hold the i_mmap_rwsem exclusively, so share it and allow concurrent readers to build the ma

Re: [PATCH 05/10] uprobes: share the i_mmap_rwsem

2014-10-27 Thread Oleg Nesterov
On 10/27, Srikar Dronamraju wrote: > > Copying Oleg (since he should have been copied on this one) Thanks ;) > Please see one comment below. > > Acked-by: Srikar Dronamraju > > > --- > > kernel/events/uprobes.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a

Re: [PATCH 05/10] uprobes: share the i_mmap_rwsem

2014-10-27 Thread Srikar Dronamraju
* Davidlohr Bueso [2014-10-24 15:06:15]: > Both register and unregister call build_map_info() in order > to create the list of mappings before installing or removing > breakpoints for every mm which maps file backed memory. As > such, there is no reason to hold the i_mmap_rwsem exclusively, > so

[PATCH 05/10] uprobes: share the i_mmap_rwsem

2014-10-24 Thread Davidlohr Bueso
Both register and unregister call build_map_info() in order to create the list of mappings before installing or removing breakpoints for every mm which maps file backed memory. As such, there is no reason to hold the i_mmap_rwsem exclusively, so share it and allow concurrent readers to build the ma