From: Shakeel Butt <shakeelb@google.com>
To: Minchan Kim <minchan@kernel.org>
Cc: Heiko Carstens <hca@linux.ibm.com>,
Andrew Morton <akpm@linux-foundation.org>,
Roman Gushchin <guro@fb.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Hugh Dickins <hughd@google.com>,
Juergen Christ <jchrist@linux.ibm.com>,
Christian Borntraeger <borntraeger@de.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>, Linux MM <linux-mm@kvack.org>,
Linux-Next Mailing List <linux-next@vger.kernel.org>
Subject: Re: [BUG -next] "memcg: charge before adding to swapcache on swapin" broken
Date: Wed, 17 Mar 2021 18:49:27 -0700 [thread overview]
Message-ID: <CALvZod7ggc=98wJauDmB=05+9MnLo0_ppeTHfZrxj5idNsD1iA@mail.gmail.com> (raw)
In-Reply-To: <YFKtTWk3eAsyqssD@google.com>
On Wed, Mar 17, 2021 at 6:31 PM Minchan Kim <minchan@kernel.org> wrote:
>
[...]
> >
> > The simplest solution I can think of is to do set_page_private(page,
> > entry.val) before swap_readpage(page, true) and set_page_private(page,
> > 0) after.
>
> Since I did't read the bug in detail, I couldn't come up with how the
> missing reset is connected the problem while missing set_page_private
> with entry.val is clear.
This particular bug is about missing set_page_private(page,
entry.val). I was wondering if we should always reset page->private or
just leave it as is? I think it is safer to reset.
next prev parent reply other threads:[~2021-03-18 1:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-16 21:08 [BUG -next] "memcg: charge before adding to swapcache on swapin" broken Heiko Carstens
2021-03-16 21:21 ` Shakeel Butt
2021-03-17 0:46 ` Heiko Carstens
2021-03-17 8:36 ` Christian Borntraeger
2021-03-17 13:33 ` Shakeel Butt
2021-03-17 15:26 ` Heiko Carstens
2021-03-17 15:44 ` Shakeel Butt
2021-03-17 20:44 ` Heiko Carstens
2021-03-17 21:11 ` Heiko Carstens
2021-03-17 21:39 ` Shakeel Butt
2021-03-18 0:23 ` Shakeel Butt
2021-03-18 1:30 ` Minchan Kim
2021-03-18 1:49 ` Shakeel Butt [this message]
2021-03-18 15:19 ` Minchan Kim
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='CALvZod7ggc=98wJauDmB=05+9MnLo0_ppeTHfZrxj5idNsD1iA@mail.gmail.com' \
--to=shakeelb@google.com \
--cc=akpm@linux-foundation.org \
--cc=borntraeger@de.ibm.com \
--cc=gor@linux.ibm.com \
--cc=guro@fb.com \
--cc=hannes@cmpxchg.org \
--cc=hca@linux.ibm.com \
--cc=hughd@google.com \
--cc=jchrist@linux.ibm.com \
--cc=linux-mm@kvack.org \
--cc=linux-next@vger.kernel.org \
--cc=minchan@kernel.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;
as well as URLs for NNTP newsgroup(s).