From: Alistair Popple <apopple@nvidia.com>
To: John Hubbard <jhubbard@nvidia.com>
Cc: Matthew Wilcox <willy@infradead.org>,
linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>,
Ralph Campbell <rcampbell@nvidia.com>,
nouveau@lists.freedesktop.org, stable@vger.kernel.org
Subject: Re: [PATCH] mm: Take a page reference when removing device exclusive entries
Date: Thu, 30 Mar 2023 11:55:45 +1100 [thread overview]
Message-ID: <87v8ijt5pk.fsf@nvidia.com> (raw)
In-Reply-To: <87zg7vt75v.fsf@nvidia.com>
Alistair Popple <apopple@nvidia.com> writes:
> John Hubbard <jhubbard@nvidia.com> writes:
>
>> On 3/28/23 20:16, Matthew Wilcox wrote:
>> ...
>>>> + if (!get_page_unless_zero(vmf->page))
>>>> + return 0;
>>> From a folio point of view: what the hell are you doing here? Tail
>>> pages don't have individual refcounts; all the refcounts are actually
>
> I had stuck with using the page because none of this stuff (yet)
> supports compound pages anyway so we shouldn't see a tail page
> anyway. But point taken, I admit I need to find some time to get a
> deeper internalised understanding of folios than just s/page/folio.
And looking at this while updating it made the mixed usage of page/folio
look really werid/wrong so thanks for pointing that out. Will send an
update.
prev parent reply other threads:[~2023-03-30 0:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-28 2:14 Alistair Popple
2023-03-28 6:25 ` John Hubbard
2023-03-28 19:55 ` Andrew Morton
2023-03-29 1:45 ` Alistair Popple
2023-03-28 19:59 ` Ralph Campbell
2023-03-29 3:16 ` Matthew Wilcox
2023-03-29 3:45 ` John Hubbard
2023-03-30 0:26 ` Alistair Popple
2023-03-30 0:55 ` Alistair Popple [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v8ijt5pk.fsf@nvidia.com \
--to=apopple@nvidia.com \
--cc=akpm@linux-foundation.org \
--cc=jhubbard@nvidia.com \
--cc=linux-mm@kvack.org \
--cc=nouveau@lists.freedesktop.org \
--cc=rcampbell@nvidia.com \
--cc=stable@vger.kernel.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox