mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche@acm.org>
To: Tao Cui <cui.tao@linux.dev>
Cc: 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: Mon, 30 Nov 2026 08:34:41 -0800	[thread overview]
Message-ID: <364fdb6c-bb22-425d-8109-c954e269fff0@acm.org> (raw)
In-Reply-To: <2FD3BF4D-509E-4A3E-B605-D6DD16226148@linux.dev>

On 11/30/26 6:57 AM, Tao Cui wrote:
> 于 2026年11月30日 GMT+08:00 22:04:09,Bart Van Assche <bvanassche@acm.org> 写道:
>> On 11/30/26 2:20 AM, Tao Cui wrote:
>>> I'm planning to send this as v10 unless you see a problem with the
>>> design.
>> Are there any lo_fallocate() callers that expect that
>> loop_clear_limits() has completed by the time lo_fallocate() returns?
>>
> I think no, nothing depends on that.  lo_fallocate() is only called from
> do_req_filebacked(): both call sites return the fallocate result
> directly to request completion, so the failing request completes with
> EOPNOTSUPP regardless of when the limits update commits, and nothing
> reads the queue limits expecting the cleared state right after
> lo_fallocate() returns.  Requests dispatched before the work item runs
> also fail with EOPNOTSUPP, the first one reports, repeats are quiet, and the work items serialize on lo->workqueue, so the update
> converges.
> 
> Tested with PROVE_LOCKING enabled: loop/011, the concurrency sweep and
> the mkfs/unbind stress run clean.
> 
> Please correct me if I have misunderstood anything here
Please queue the dynamically allocated work on another workqueue than
lo->workqueue. I'm concerned that using lo->workqueue might trigger a
deadlock.

Thanks,

Bart.

      reply	other threads:[~2026-11-30 16:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  5:42 [PATCH v8] " 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 [this message]

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=364fdb6c-bb22-425d-8109-c954e269fff0@acm.org \
    --to=bvanassche@acm.org \
    --cc=axboe@kernel.dk \
    --cc=cui.tao@linux.dev \
    --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

all inboxes | Powered by JetHome®