[PATCH 6/6] drivers/IB,core: reduce scope of mmap_sem

2019-02-06 Thread Davidlohr Bueso
ib_umem_get() uses gup_longterm() and relies on the lock to stabilze the vma_list, so we cannot really get rid of mmap_sem altogether, but now that the counter is atomic, we can get of some complexity that mmap_sem brings with only pinned_vm. Reviewed-by: Ira Weiny Signed-off-by: Davidlohr Bueso

Re: [PATCH 6/6] drivers/IB,core: reduce scope of mmap_sem

2019-01-21 Thread Christopher Lameter
On Mon, 21 Jan 2019, Davidlohr Bueso wrote: > ib_umem_get() uses gup_longterm() and relies on the lock to > stabilze the vma_list, so we cannot really get rid of mmap_sem > altogether, but now that the counter is atomic, we can get of > some complexity that mmap_sem brings with only pinned_vm. Re

Re: [PATCH 6/6] drivers/IB,core: reduce scope of mmap_sem

2019-01-21 Thread Davidlohr Bueso
On Mon, 21 Jan 2019, Jason Gunthorpe wrote: On Mon, Jan 21, 2019 at 09:42:20AM -0800, Davidlohr Bueso wrote: ib_umem_get() uses gup_longterm() and relies on the lock to stabilze the vma_list, so we cannot really get rid of mmap_sem altogether, but now that the counter is atomic, we can get of s

Re: [PATCH 6/6] drivers/IB,core: reduce scope of mmap_sem

2019-01-21 Thread Jason Gunthorpe
On Mon, Jan 21, 2019 at 09:42:20AM -0800, Davidlohr Bueso wrote: > ib_umem_get() uses gup_longterm() and relies on the lock to > stabilze the vma_list, so we cannot really get rid of mmap_sem > altogether, but now that the counter is atomic, we can get of > some complexity that mmap_sem brings with

[PATCH 6/6] drivers/IB,core: reduce scope of mmap_sem

2019-01-21 Thread Davidlohr Bueso
ib_umem_get() uses gup_longterm() and relies on the lock to stabilze the vma_list, so we cannot really get rid of mmap_sem altogether, but now that the counter is atomic, we can get of some complexity that mmap_sem brings with only pinned_vm. Reviewed-by: Ira Weiny Signed-off-by: Davidlohr Bueso