That gives you additional options inside internal_get_user_pages_fast(), such
as, approximately:
if (!(gup_flags & FOLL_FAST_ONLY))
might_lock_read(¤t->mm->mmap_lock);
...not that that is necessarily a great idea, seeing as how it merely changes
"might lock" into "maybe might lock". :)
I think that is completely fine, makes sure everyone not using
FOLL_FAST_ONLY realizes that the call could block.
Can I ask you to add that assertion in your patchset ? Based on
Matthew's feedback, I would do it in my patchset, but it doesn't seem
worth doing if we know this will conflict with your changes.