From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.142 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796050644; b=WJWMyE398/W+YQLqAGDec8R1Bj8s1mesq4862iLca1Sw1W7uXSkEFSf/c5fpCmvLrcUr kl7m48DqKZcrnKKUHpEiM8TNABEDDP8ZshtMIVgyK4CAtIZgwrtZjMlksRiBesyRBW3qd VKPLuxfvKHi7rmERaF2BW0gsRC8rZYCgm5tv1Q73+OPMqZeU3wNeSWyGnMQ53pOPr4y/c t72p1f1/bJu3sdC7P3XeHjXJnRaaDKuU4q77hExKp/4fUDw5DABGKZzj5zvAp/nYkEp1+ fCBPPO43zPmzcOkzm0bXeSiw++AbN0hGDT4eYt6ta5bVmttjZvsauR1oGngH34lODDw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796050644; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:CC:Subject:User-Agent: In-Reply-To:References:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=F2X5OLihHyfN/X3PncnctAXxqniPgFNh+DT7DB/5nAk=; b=tIRzXzqRIIkIlnRrHq1njXrtgr5MuHiZo5xqDcyZn/RQxRL0+SHgvOgG/yU8npN6Kr1Z qPWk9DtBgY+uP1/9Y97n/JCggVIsqLC2iV55w4D8v81pT7+qQn2/FuCPJvk4GRi9Fw3JP /tjYsyFxVmskbndlce+OiWhApzIN0/Qh31TZTNwSXkyYQJpurivEUJEcgmxB9FJGd4Jgc bWaxAAZEPqpPMDJOxG9zKQ1b13qRsAsygkVKqkMMaO7ObDc+1TelWtvmf/YKPCfPYgLX6 5XWAAkW4yY+NJH+ZxtRwzcgiwQE1gNmBXkIL6BogZhdu8yFAug46lAQVciP6gnppT7A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b="Qwq/E6WS"; arc=none smtp.remote-ip=91.218.175.142 Received: from mta0.migadu.com (out-142.mta0.migadu.com [91.218.175.142]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83E5B606A320 for ; Mon, 30 Nov 2026 14:57:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 83E5B606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=Qwq/E6WS X-Envelope-To: linux-block@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=S33ALPGnd5tmLgDRkewQPJA7PQl+bXRFLlOFRe+KcAk=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796050641; v=1; x=1796655441; b=Qwq/E6WSp06+N3kkNlWfuEQorUzykNr/eDXkSuXOpZLAZffXC8oigIKZqD9W/M0eA2vISAwo er03+HNuCoyyjNWZs8vdZuvhG8kcOqOCfp5jSvvfHD/9nanwKII9Va/qBtyOC1/hmONWOtw4kFm M6Q891Y2H7do1ufpMi6KKxts= X-Envelope-To: linux-block@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id db6d0eb55c83a471; Mon, 30 Nov 2026 14:57:21 +0000 X-Mizu-Trace-ID: db6d0eb55c83a471 X-Migadu-Flow: FLOW_OUT Date: Mon, 30 Nov 2026 22:57:09 +0800 From: Tao Cui To: Bart Van Assche CC: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Shin'ichiro Kawasaki , Jens Axboe , Christoph Hellwig , Tetsuo Handa , cuitao@kylinos.cn, cui.tao@linux.dev Subject: Re: [PATCH v9] loop: defer the queue limits clear to a workqueue User-Agent: Thunderbird for Android In-Reply-To: <6eed3fd1-3c0e-42ac-8d86-634522516f05@acm.org> References: <20261126054223.176824-1-cui.tao@linux.dev> <20261126135628.495497-1-cui.tao@linux.dev> <46cefe96-a193-40f9-bc1a-facc73cf6afa@acm.org> <0523850b-2049-41ff-8dfa-ca3a8f055a5f@linux.dev> <6eed3fd1-3c0e-42ac-8d86-634522516f05@acm.org> Message-ID: <2FD3BF4D-509E-4A3E-B605-D6DD16226148@linux.dev> X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, Bart, =E4=BA=8E 2026=E5=B9=B411=E6=9C=8830=E6=97=A5 GMT+08:00 22:04:09=EF=BC=8CB= art Van Assche =E5=86=99=E9=81=93=EF=BC=9A >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=2E >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=2E 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=2E Requests dispatched before the work item runs also fail with EOPNOTSUPP, the first one reports, repeats are quiet, and t= he work items serialize on lo->workqueue, so the update converges=2E Tested with PROVE_LOCKING enabled: loop/011, the concurrency sweep and the mkfs/unbind stress run clean=2E Please correct me if I have misunderstood anything here Thanks, Tao >Thanks, > >Bart=2E