From: Joel Colledge <joel.colledge@linbit.com>
To: Christian Loehle <christian.loehle@arm.com>
Cc: Mikulas Patocka <mpatocka@redhat.com>,
Alasdair Kergon <agk@redhat.com>,
Mike Snitzer <snitzer@kernel.org>,
dm-devel@lists.linux.dev
Subject: Re: [PATCH 1/1] dm-delay: fix hung task introduced by kthread mode
Date: Tue, 30 Apr 2024 16:44:25 +0200 [thread overview]
Message-ID: <CAGNP_+Uocb_8YtY9P3EuMQ8sQwWaQtqEMszqbGZrVyrKw-udRg@mail.gmail.com> (raw)
In-Reply-To: <71a31fdb-fad6-4ce9-bda0-2f86633d23a3@arm.com>
On Tue, 30 Apr 2024 at 16:28, Christian Loehle <christian.loehle@arm.com> wrote:
> Is this an issue for delay > 0 too somehow?
I believe it is. If there is simply no IO to the delay device, then
nothing will wake the new thread and the same issue will occur.
I haven't yet reproduced this case, because the system I am testing on
submits reads on any new block device and I don't know offhand how to
disable them. I think the reads are from scans for multipathd,
bcachefs or similar.
> Indeed if we don't have a delay the process will never be woken up,
> but in that case, why create the worker in the first place?
I agree. If this were only an issue with delay == 0, it would make
more sense not to create the worker at all.
As mentioned above, I believe the issue can occur with delay > 0. So
not creating the worker in the delay == 0 case is an additional
optimization and out of the scope of this change.
> You're missing lkml as recipient btw.
Thanks for the pointer and thanks for your response!
Best regards,
Joel
next prev parent reply other threads:[~2024-04-30 14:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-26 7:21 [PATCH 0/1] dm-delay: fix hung task issue Joel Colledge
2024-04-26 7:21 ` [PATCH 1/1] dm-delay: fix hung task introduced by kthread mode Joel Colledge
2024-04-30 14:28 ` Christian Loehle
2024-04-30 14:44 ` Joel Colledge [this message]
2024-04-30 15:26 ` Christian Loehle
2024-04-30 16:12 ` Joel Colledge
2024-05-01 8:26 ` Christian Loehle
2024-05-03 22:56 ` Benjamin Marzinski
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=CAGNP_+Uocb_8YtY9P3EuMQ8sQwWaQtqEMszqbGZrVyrKw-udRg@mail.gmail.com \
--to=joel.colledge@linbit.com \
--cc=agk@redhat.com \
--cc=christian.loehle@arm.com \
--cc=dm-devel@lists.linux.dev \
--cc=mpatocka@redhat.com \
--cc=snitzer@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).