Re: [RFC 5/9] iov_iter: Add iov_iter_fault_in_writeable()

From: Linus Torvalds
Date: Sat Jun 12 2021 - 19:18:05 EST


On Sat, Jun 12, 2021 at 2:47 PM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> O_DIRECT case is a PITA - there we use GUP and there's no way
> to tell GUP that in the current situation we do *NOT* want to hit
> ->fault()/->page_mkwrite()/etc. pagefault_disable() won't be even
> noticed there...

Well, we could change that.

And we do have get_user_pages_fast_only() these days.

Linus