Thread (31 messages) 31 messages, 5 authors, 2022-09-01

Re: [PATCH 3/6] iov_iter: new iov_iter_pin_pages*() routines

From: John Hubbard <jhubbard@nvidia.com>
Date: 2022-08-27 22:48:29
Also in: linux-fsdevel, linux-mm, linux-nfs, linux-xfs, lkml

On 8/27/22 15:46, Al Viro wrote:
On Sat, Aug 27, 2022 at 01:36:04AM -0700, John Hubbard wrote:
quoted
Provide two new wrapper routines that are intended for user space pages
only:

    iov_iter_pin_pages()
    iov_iter_pin_pages_alloc()

Internally, these routines call pin_user_pages_fast(), instead of
get_user_pages_fast().

As always, callers must use unpin_user_pages() or a suitable FOLL_PIN
variant, to release the pages, if they actually were acquired via
pin_user_pages_fast().

This is a prerequisite to converting bio/block layers over to use
pin_user_pages_fast().
You do realize that O_DIRECT on ITER_BVEC is possible, right?
I do now. But I didn't until you wrote this!

Any advice or ideas would be welcome here.


thanks,

-- 
John Hubbard
NVIDIA
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help