lkml.org 
[lkml]   [2021]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v7 17/19] gup: Introduce FOLL_NOFAULT flag to disable page faults
    On Fri, Aug 27, 2021 at 06:49:24PM +0200, Andreas Gruenbacher wrote:
    > Introduce a new FOLL_NOFAULT flag that causes get_user_pages to return
    > -EFAULT when it would otherwise trigger a page fault. This is roughly
    > similar to FOLL_FAST_ONLY but available on all architectures, and less
    > fragile.

    So, FOLL_FAST_ONLY only has one single user through
    get_user_pages_fast_only (pin_user_pages_fast_only is entirely unused,
    which makes totally sense given that give up on fault and pin are not
    exactly useful semantics).

    But it looks like they want to call it from atomic context, so we can't
    really share it. Sight, I hate all these single-user FOLL flags that
    make gup.c a complete mess.

    But otherwise this looks fine.

    \
     
     \ /
      Last update: 2021-09-09 13:38    [W:4.354 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site