linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Jane Chu <jane.chu@oracle.com>
To: David Hildenbrand <david@redhat.com>,
	Matthew Wilcox <willy@infradead.org>
Cc: linux-mm@kvack.org, John Hubbard <jhubbard@nvidia.com>,
	Jane Chu <jane.chu@oracle.com>
Subject: Re: Splitting pinned folios
Date: Wed, 13 Mar 2024 11:52:33 -0700	[thread overview]
Message-ID: <f567cc56-062e-405f-b79a-0433b6e8bf17@oracle.com> (raw)
In-Reply-To: <6af71fb7-5376-4d5b-beef-78c2b2359b0a@redhat.com>

On 3/13/2024 9:53 AM, David Hildenbrand wrote:

>>   * 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.
>
Thank you Matthew and David,  let me take some time digesting points you 
raised, and rerun the test, hopefully not only on my hacked up kernel 
for emulating GUP pin, but with real mr_register(), and report my findings.

thanks!

-jane



  reply	other threads:[~2024-03-13 18:52 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
2024-03-13 18:52       ` Jane Chu [this message]
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=f567cc56-062e-405f-b79a-0433b6e8bf17@oracle.com \
    --to=jane.chu@oracle.com \
    --cc=david@redhat.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