From: Khazhy Kumykov <khazhy@google.com>
To: Trond Myklebust <trondmy@hammerspace.com>
Cc: "bfields@fieldses.org" <bfields@fieldses.org>,
"chuck.lever@oracle.com" <chuck.lever@oracle.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH RFC] nfsd: avoid recursive locking through fsnotify
Date: Fri, 18 Mar 2022 18:45:04 -0700 [thread overview]
Message-ID: <CACGdZYJGm2VP0wHhqCegp+P0rKpEhdTdvjWK_T3+9FNHM3W8cw@mail.gmail.com> (raw)
In-Reply-To: <ea2afc67b92f33dbf406c3ebf49a0da9c6ec1e5b.camel@hammerspace.com>
[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]
On Fri, Mar 18, 2022 at 5:36 PM Trond Myklebust <trondmy@hammerspace.com> wrote:
>
> Isn't that stack trace showing a slab direct reclaim, and not a
> filesystem writeback situation?
>
> Does memalloc_nofs_save()/restore() really fix this problem? It seems
> to me that it cannot, particularly since knfsd is not a filesystem, and
> so does not ever handle writeback of dirty pages.
Ah you're right. An alternative would be delaying the destroy_mark,
which I am noticing now that, on mainline, the shrinker calls
nfsd_file_dispose_list_delayed, something missing from the version of
5.4 I was looking at.
To my reading 9542e6a643fc6 ("nfsd: Containerise filecache
laundrette") should have the effect of fixing this deadlock (and the
message does explicitly call out notifier deadlocks) - maybe something
to send towards stable?
>
>
> Cc: the linux-mm mailing list in search of answers to the above 2
> questions.
>
> --
> Trond Myklebust
> Linux NFS client maintainer, Hammerspace
> trond.myklebust@hammerspace.com
>
>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3999 bytes --]
next prev parent reply other threads:[~2022-03-19 1:45 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220319001635.4097742-1-khazhy@google.com>
2022-03-19 0:36 ` Trond Myklebust
2022-03-19 1:45 ` Khazhy Kumykov [this message]
2022-03-19 9:36 ` Amir Goldstein
2022-03-21 11:23 ` Jan Kara
2022-03-21 11:56 ` Amir Goldstein
2022-03-21 14:51 ` Jan Kara
2022-03-22 22:41 ` Amir Goldstein
2022-03-23 10:41 ` Jan Kara
2022-03-23 11:40 ` Amir Goldstein
2022-03-23 13:48 ` Jan Kara
2022-03-23 14:00 ` Amir Goldstein
2022-03-23 14:28 ` Jan Kara
2022-03-23 15:46 ` Amir Goldstein
2022-03-23 19:31 ` Amir Goldstein
2022-03-24 19:17 ` Amir Goldstein
2022-03-25 9:29 ` Jan Kara
2022-03-27 18:14 ` Amir Goldstein
2022-03-21 22:50 ` Trond Myklebust
2022-03-21 23:36 ` Khazhy Kumykov
2022-03-21 23:50 ` Trond Myklebust
2022-03-22 10:37 ` Jan Kara
2022-03-21 17:06 ` Khazhy Kumykov
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=CACGdZYJGm2VP0wHhqCegp+P0rKpEhdTdvjWK_T3+9FNHM3W8cw@mail.gmail.com \
--to=khazhy@google.com \
--cc=bfields@fieldses.org \
--cc=chuck.lever@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-nfs@vger.kernel.org \
--cc=trondmy@hammerspace.com \
/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