From: David Hildenbrand <david@redhat.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: Jane Chu <jane.chu@oracle.com>,
linux-mm@kvack.org, John Hubbard <jhubbard@nvidia.com>
Subject: Re: Splitting pinned folios
Date: Wed, 13 Mar 2024 17:53:24 +0100 [thread overview]
Message-ID: <6af71fb7-5376-4d5b-beef-78c2b2359b0a@redhat.com> (raw)
In-Reply-To: <ZfHF4yNXPQhWz6Q5@casper.infradead.org>
> * 1 reference if the folio has private data (thank you, bufferheads)
>
> Oh. Is that the bug? can_split_folio() doesn't know that. This
> usually isn't a problem because, eg, truncate_inode_partial_folio()
> will remove the private data before calling split_folio(). But
> memory-failure doesn't know about that rule ...
The worst thing that could happen is that splitting the folio would fail
(because one more unexpected reference), not that we would split where
we shouldn't, right?
>
> No, that's not it. shmem doesn't use the folio private flag. It's
> still a bug, but it's not Jane's bug.
Maybe *something* really accidentally dropped a page reference :/
Reproducer + details would be great.
--
Cheers,
David / dhildenb
next prev parent reply other threads:[~2024-03-13 16:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-13 3:16 Matthew Wilcox
2024-03-13 9:20 ` David Hildenbrand
2024-03-13 15:27 ` Matthew Wilcox
2024-03-13 16:53 ` David Hildenbrand [this message]
2024-03-13 18:52 ` Jane Chu
2024-03-13 22:25 ` John Hubbard
2024-03-14 2:46 ` updated documentation: " John Hubbard
2024-03-14 16:22 ` David Hildenbrand
2024-03-14 17:51 ` John Hubbard
2024-03-14 17:45 ` Matthew Wilcox
2024-03-14 17:57 ` John Hubbard
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=6af71fb7-5376-4d5b-beef-78c2b2359b0a@redhat.com \
--to=david@redhat.com \
--cc=jane.chu@oracle.com \
--cc=jhubbard@nvidia.com \
--cc=linux-mm@kvack.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