Messages in this thread | | | From | Jann Horn <> | Date | Mon, 21 Sep 2020 23:43:38 +0200 | Subject | Re: [PATCH 1/5] mm: Introduce mm_struct.has_pinned |
| |
On Mon, Sep 21, 2020 at 11:17 PM Peter Xu <peterx@redhat.com> wrote: > > (Commit message collected from Jason Gunthorpe) > > Reduce the chance of false positive from page_maybe_dma_pinned() by keeping > track if the mm_struct has ever been used with pin_user_pages(). mm_structs > that have never been passed to pin_user_pages() cannot have a positive > page_maybe_dma_pinned() by definition.
There are some caveats here, right? E.g. this isn't necessarily true for pagecache pages, I think?
| |