# Re: \[PATCH v7 07/24\] IB/umem: use get\_user\_pages\_fast() to pin DMA pages

- From: John Hubbard \<jhubbard@nvidia.com\>
- Date: 2019-11-24 06:15:15 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2019/11/167518
- Thread: https://ratatoskr.run/bpf/2019/11/167331/t.md

```text
On 11/21/19 6:36 AM, Jason Gunthorpe wrote:
> On Thu, Nov 21, 2019 at 12:07:46AM -0800, Christoph Hellwig wrote:
>> On Wed, Nov 20, 2019 at 11:13:37PM -0800, John Hubbard wrote:
>>> And get rid of the mmap_sem calls, as part of that. Note
>>> that get_user_pages_fast() will, if necessary, fall back to
>>> __gup_longterm_unlocked(), which takes the mmap_sem as needed.
>>>
>>> Reviewed-by: Jan Kara <jack@suse.cz>
>>> Reviewed-by: Jason Gunthorpe <redacted>
>>> Reviewed-by: Ira Weiny <redacted>
>>> Signed-off-by: John Hubbard <jhubbard@nvidia.com>
>>
>> Looks fine,
>>
>> Reviewed-by: Christoph Hellwig <hch@lst.de>
>>
>> Jason, can you queue this up for 5.5 to reduce this patch stack a bit?
> 
> Yes, I said I'd do this in an earlier revision. Now that it is clear this
> won't go through Andrew's tree, applied to rdma for-next
> 

Great, I'll plan on it going up through that tree. To be clear, is it headed 
for:

    git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next

?


thanks,
-- 
John Hubbard
NVIDIA
```
