On 12/21/18 4:30 AM, Christoph Hellwig wrote: > On Tue, Dec 18, 2018 at 08:42:24AM -0700, Jens Axboe wrote: >> For user mapped IO, we do get_user_pages() upfront, and then do a >> put_page() on each page at end_io time to release the page reference. In >> preparation for having permanently mapped pages, add a BIO_HOLD_PAGES >> flag that tells us not to release the pages, the caller will do that. >> >> Signed-off-by: Jens Axboe <axboe@xxxxxxxxx> > > This looks sensible, but I'm not sure it makes sense on its own. > The changes are a lot more obvious if merged into the next patch. I'll fold with the next one. -- Jens Axboe