From: Tao Cui <cui.tao@linux.dev>
To: Bart Van Assche <bvanassche@acm.org>
Cc: cui.tao@linux.dev, linux-block@vger.kernel.org,
linux-kernel@vger.kernel.org,
Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>,
Jens Axboe <axboe@kernel.dk>, Christoph Hellwig <hch@lst.de>,
Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>,
cuitao@kylinos.cn
Subject: Re: [PATCH v9] loop: defer the queue limits clear to a workqueue
Date: Thu, 3 Dec 2026 16:08:16 +0800 [thread overview]
Message-ID: <96ef9059-0277-485d-b771-d16c253e994d@linux.dev> (raw)
In-Reply-To: <c0e8b71b-e526-4e9a-8f96-ece849e5201d@acm.org>
Hello, Bart,
在 2026/12/2 23:13, Bart Van Assche 写道:
> On 12/1/26 5:14 AM, Tao Cui wrote:
>> Done: the work item is now queued on a dedicated unbounded workqueue
>> (loopc%d) instead of lo->workqueue, and lo_free_disk() drains that
>> workqueue before the loop_device is freed, so outstanding clear work
>> items cannot outlive it.
>>
>> On the deadlock concern: I could not trigger it on either queue
>> placement, despite trying fairly hard with an adversarial mix of
>> LOOP_SET_BLOCK_SIZE, LOOP_SET_DIRECT_IO, write-zeroes and rebind churn
>> (600 rebinds, 10,000 queue-limits updates, up to 56 concurrent failing
>> requests, stacked loop devices) under PROVE_LOCKING. The backing
>> files in these tests are memory-backed, so the drain times are short.
>> The failure reporting stays at exactly one per binding throughout, and
>> no report, hang or deadlock was observed with either the shared or the
>> dedicated workqueue.
>>
>> The full suite (loop/011, the concurrency sweep and the mkfs/unbind
>> stress) also runs clean on both kernels.
> Has v10 of this patch already been posted?
>
Not yet, that message was design-only, and I held the patch pending
your feedback on the direction. Posting it as v10 in this thread now.
Thanks,
Tao.
> Thanks,
>
> Bart.
next prev parent reply other threads:[~2026-12-03 8:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 5:42 [PATCH v8] loop: defer the queue limits clear to a workqueue Tao Cui
2026-11-26 10:06 ` Tao Cui
2026-11-26 13:56 ` [PATCH v9] " Tao Cui
2026-11-26 15:32 ` Bart Van Assche
2026-11-30 10:20 ` Tao Cui
2026-11-30 14:04 ` Bart Van Assche
2026-11-30 14:57 ` Tao Cui
2026-11-30 16:34 ` Bart Van Assche
2026-12-01 13:14 ` Tao Cui
2026-12-02 15:13 ` Bart Van Assche
2026-12-03 8:08 ` Tao Cui [this message]
2026-12-03 8:16 ` [PATCH v10] " Tao Cui
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=96ef9059-0277-485d-b771-d16c253e994d@linux.dev \
--to=cui.tao@linux.dev \
--cc=axboe@kernel.dk \
--cc=bvanassche@acm.org \
--cc=cuitao@kylinos.cn \
--cc=hch@lst.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
--cc=shinichiro.kawasaki@wdc.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