Re: [PATCH][RFC][0/4] InfiniBand userspace verbs implementation

From: Andrew Morton (akpm_at_osdl.org)
Date: 04/26/05

  • Next message: Timur Tabi: "Re: [PATCH][RFC][0/4] InfiniBand userspace verbs implementation"
    Date:	Mon, 25 Apr 2005 15:35:42 -0700
    To: Timur Tabi <timur.tabi@ammasso.com>
    
    

    Timur Tabi <timur.tabi@ammasso.com> wrote:
    >
    > Andrew Morton wrote:
    >
    > > The way we expect get_user_pages() to be used is that the kernel will use
    > > get_user_pages() once per application I/O request.
    >
    > Are you saying that the mapping obtained by get_user_pages() is valid only within the
    > context of the IOCtl call? That once the driver returns from the IOCtl, the mapping
    > should no longer be used?

    Yes, we expect that all the pages which get_user_pages() pinned will become
    unpinned within the context of the syscall which pinned the pages. Or
    shortly after, in the case of async I/O.

    This is because there is no file descriptor or anything else associated
    with the pages which permits the kernel to clean stuff up on unclean
    application exit. Also there are the obvious issues with permitting
    pinning of unbounded amounts of memory.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Timur Tabi: "Re: [PATCH][RFC][0/4] InfiniBand userspace verbs implementation"

    Relevant Pages

    • Re: [openib-general] Re: [PATCH][RFC][0/4] InfiniBand userspace verbs implementation
      ... That once the driver returns from the IOCtl, ... > unpinned within the context of the syscall which pinned the pages. ... the driver must be able to determine that the process has died ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Requiring Permits abridges the right of peaceable assembly: was/Re: Mankind shortening the unive
      ... To find the truth insulting is not "rational." ... the context was the Permits to gather CONTRACTS the High Holy ... attend lots of permitted events. ...
      (alt.gathering.rainbow)
    • Re: [pm] fix oops after saving image
      ... The patch is simply a band-aid, ... seeing that line solely in the context on the rest of the source ... In the pmdisk code, I've statically declared the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [pm] fix oops after saving image
      ... > context of the email. ... > the reason for the patch, if they manipulated the BK tools correctly. ... When do you have a heart between your knees? ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [PATCH/RFC] exposing ACPI objects in sysfs
      ... > sizes. ... > If it solved the entire 32/64 bit problem, an ioctl would probably be ... > get useful info simply by cat'ing a file. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)