David Hildenbrand 3298de2c66 media: videobuf-dma-sg: remove FOLL_FORCE usage
GUP now supports reliable R/O long-term pinning in COW mappings, such
that we break COW early. MAP_SHARED VMAs only use the shared zeropage so
far in one corner case (DAXFS file with holes), which can be ignored
because GUP does not support long-term pinning in fsdax (see
check_vma_flags()).

Consequently, FOLL_FORCE | FOLL_WRITE | FOLL_LONGTERM is no longer required
for reliable R/O long-term pinning: FOLL_LONGTERM is sufficient. So stop
using FOLL_FORCE, which is really only for ptrace access.

Link: https://lkml.kernel.org/r/20221116102659.70287-14-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-11-30 15:58:59 -08:00
..
2022-10-22 15:30:15 -07:00
2022-10-22 15:30:15 -07:00
2022-10-22 15:30:15 -07:00
2022-03-18 05:58:35 +01:00
2022-10-22 15:30:15 -07:00
2022-10-22 15:30:15 -07:00
2022-10-22 15:30:15 -07:00
2022-03-23 14:51:35 -07:00
2022-10-22 15:30:15 -07:00
2022-10-22 15:30:15 -07:00
2022-03-12 16:59:52 +01:00