From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=199.89.1.16 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796224431; b=w4prieZUgv454kWnahIIY0rjw5/F4JpeSh7y5leqnEkGjknR8VCCbnB820C8Tzwp+SML wN8bklgHN1Okgsf6bCt9La7BN6yk8tNP9zzGs+XBRtuRCnsxLq7J563sx9kOP9iFkv29h umfvB5nDUWexE7wWygaIgclE3KJdScMK8eIvHb+D8GjCFHFasalQCHNA19lc9qAgSDWSg 9SakkLtxf2ktVI6QSweWu9cLkLZ/ufVh3emzwdVJ6a9AbB0ZsYyTbOQ1TbkAWRnO6eEnA dB4XxCQL7qUhMwFK7UggjVepmU5m5OmBPBI5ZXZMkvJaaKzkQAs+2rVHUOtYQlRAoGQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796224431; h=DMARC-Filter:Received:DKIM-Signature:X-Virus-Scanned:Received: Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=uIOl64jA3OLTG5464U6OVbyKqYSBo7AJdhj/C7HdUMg=; b=0eqW2dr006T1NMrJeNw36UZOk/YbPxm7ApVCXDIG6FlALJOM7QhQBRmh8qQtD2XKx1kb Sxd1Q2NP0MtTRA7cFmTEy8GpCGwXWONglcC+u93+vl0hG2KObBL2txoH2TiSlVzy3v60u GOJBp7dV02Ir4bqPr5XBcV5nF8c7cC3jrU0MY6NwPmCZZk52RLXjcLF2xIM6ehvde8/Bp npz94t/AuG05c/yNw5mCHDm36taPYAdcEoQseem97o5vP14Ua1n4BcQjK/NLJVv6qpnbD XFZq5KlAq5gjETw94uNuI5QBuYkQf8B2Xetp+uS7rHFCAnqSeSn+HfCv90D6E6pObNg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass header.d=acm.org header.i=@acm.org header.a=rsa-sha256 header.s=mr01 header.b=aja8sgGr; arc=none smtp.remote-ip=199.89.1.16 Received: from 013.lax.mailroute.net (013.lax.mailroute.net [199.89.1.16]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49BEE606A31A; Wed, 2 Dec 2026 15:13:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 49BEE606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=acm.org header.i=@acm.org header.a=rsa-sha256 header.s=mr01 header.b=aja8sgGr Received: from localhost (localhost [127.0.0.1]) by 013.lax.mailroute.net (Postfix) with ESMTP id 4jfh9V4KjSzlfvpx; Wed, 2 Dec 2026 15:13:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1796224427; x=1798816428; bh=uIOl64jA3OLTG5464U6OVbyK qYSBo7AJdhj/C7HdUMg=; b=aja8sgGrCs/cH1WZojBFim81VJR9WQuxy+onDbC/ FISy1t2oktOX5j1dtBPjqvDyOLm4uVS3FDa1YENUmvCZXPWNCdJ1ruRv2ByRVp1w vUKRPXr8bAVkFOIX3ZCtJGrJt/fv3vj9F7wPmIGOSjuXCFO8BwwsvvvdPGTB/2Jl F/TGnXhp9iaoU7jZDz4UZJRjjeyGNlVmRuZGZzNKbtT6C61fjS3W0bRVeR0StT07 6S8d1vjvAPl6IcdwHj6ekXuGIVggg8xarOLFdv/kJDleAJVg0LfcX9qhpDt29jbp FhBy5QQxVYvYjmulTUWf/+7ShILLS1sdIL//yBz7Ywj/0g== X-Virus-Scanned: by MailRoute Received: from 013.lax.mailroute.net ([127.0.0.1]) by localhost (013.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id KVr2ldWRwTrE; Wed, 2 Dec 2026 15:13:47 +0000 (UTC) Received: from [192.168.0.215] (c-24-6-239-25.hsd1.ca.comcast.net [24.6.239.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 013.lax.mailroute.net (Postfix) with ESMTPSA id 4jfh9R3ZxJzlfvpw; Wed, 2 Dec 2026 15:13:47 +0000 (UTC) Message-ID: Date: Wed, 2 Dec 2026 07:13:46 -0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9] loop: defer the queue limits clear to a workqueue To: Tao Cui Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Shin'ichiro Kawasaki , Jens Axboe , Christoph Hellwig , Tetsuo Handa , cuitao@kylinos.cn 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> <2FD3BF4D-509E-4A3E-B605-D6DD16226148@linux.dev> <364fdb6c-bb22-425d-8109-c954e269fff0@acm.org> <232e31ac-6e41-443f-a708-4e41a14a0c76@linux.dev> Content-Language: en-US From: Bart Van Assche In-Reply-To: <232e31ac-6e41-443f-a708-4e41a14a0c76@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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? Thanks, Bart.