Re: [PATCH v2 1/6] iov_iter: Introduce fault_in_iov_iter helper

From: Linus Torvalds
Date: Mon Jul 19 2021 - 16:06:39 EST


On Sun, Jul 18, 2021 at 3:39 PM Andreas Gruenbacher <agruenba@xxxxxxxxxx> wrote:
>
> Introduce a new fault_in_iov_iter helper for manually faulting in an iterator.
> Other than fault_in_pages_writeable(), this function is non-destructive.

You mean "Unlike" rather than "Other than" (also in the comment of the patch).

This is fairly inefficient, but as long as it's the exceptional case,
that's fine. It might be worth making that very explicit, so that
people don't try to use it normally.

Linus