From: Andrew Morton <akpm@linux-foundation.org>
To: Muchun Song <songmuchun@bytedance.com>
Cc: Matthew Wilcox <willy@infradead.org>,
jgg@ziepe.ca, jhubbard@nvidia.com, william.kucharski@oracle.com,
dan.j.williams@intel.com, jack@suse.cz, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
nvdimm@lists.linux.dev, stable@vger.kernel.org
Subject: Re: [PATCH v2] mm: fix missing wake-up event for FSDAX pages
Date: Tue, 5 Jul 2022 20:00:42 -0700 [thread overview]
Message-ID: <20220705200042.26ddd5e2e106df4e65adcc74@linux-foundation.org> (raw)
In-Reply-To: <YsT3xFSLJonnA2XC@FVFYT0MHHV2J.usts.net>
On Wed, 6 Jul 2022 10:47:32 +0800 Muchun Song <songmuchun@bytedance.com> wrote:
> > If this wakeup is not one of these, then are there reports from the
> > softlockup detector?
> >
> > Do we have reports of processes permanently stuck in D state?
> >
>
> No. The task is in an TASK_INTERRUPTIBLE state (see __fuse_dax_break_layouts).
> The hung task reporter only reports D task (TASK_UNINTERRUPTIBLE).
Thanks, I updated the changelog a bit.
: FSDAX page refcounts are 1-based, rather than 0-based: if refcount is
: 1, then the page is freed. The FSDAX pages can be pinned through GUP,
: then they will be unpinned via unpin_user_page() using a folio variant
: to put the page, however, folio variants did not consider this special
: case, the result will be to miss a wakeup event (like the user of
: __fuse_dax_break_layouts()). This results in a task being permanently
: stuck in TASK_INTERRUPTIBLE state.
:
: Since FSDAX pages are only possibly obtained by GUP users, so fix GUP
: instead of folio_put() to lower overhead.
I believe these details are helpful for -stable maintainers who are
wondering why they were sent stuff. Also for maintainers of
downstreeam older kernels who are scratching heads over some user bug
report, trying to find a patch which might fix it - for this they want
to see a description of the user-visible effects, for matching with
that bug report.
next prev parent reply other threads:[~2022-07-06 3:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-05 12:35 [PATCH v2] mm: fix missing wake-up event for FSDAX pages Muchun Song
2022-07-05 21:18 ` Andrew Morton
2022-07-05 23:38 ` Matthew Wilcox
2022-07-05 23:47 ` Andrew Morton
2022-07-06 2:47 ` Muchun Song
2022-07-06 3:00 ` Andrew Morton [this message]
2022-07-06 3:11 ` Muchun Song
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=20220705200042.26ddd5e2e106df4e65adcc74@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=dan.j.williams@intel.com \
--cc=jack@suse.cz \
--cc=jgg@ziepe.ca \
--cc=jhubbard@nvidia.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nvdimm@lists.linux.dev \
--cc=songmuchun@bytedance.com \
--cc=stable@vger.kernel.org \
--cc=william.kucharski@oracle.com \
--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;
as well as URLs for NNTP newsgroup(s).