]> git.baikalelectronics.ru Git - kernel.git/commit
iov_iter: Introduce nofault flag to disable page faults
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 12 Jul 2021 10:06:14 +0000 (12:06 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Sun, 24 Oct 2021 13:26:06 +0000 (15:26 +0200)
commitd2044c578bbeb80b821a71932348d05c4cb0a67d
treed59b8bcd05c76e7f7924a4d9eb587e3e2791b268
parent140fd771fded7514c169556c9aff136a9f7c11af
iov_iter: Introduce nofault flag to disable page faults

Introduce a new nofault flag to indicate to iov_iter_get_pages not to
fault in user pages.

This is implemented by passing the FOLL_NOFAULT flag to get_user_pages,
which causes get_user_pages to fail when it would otherwise fault in a
page. We'll use the ->nofault flag to prevent iomap_dio_rw from faulting
in pages when page faults are not allowed.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
include/linux/uio.h
lib/iov_iter.c