From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E504E77199 for ; Wed, 8 Jan 2025 11:03:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=R8gG714XgLnBsd4qVfsWpG27tmknVXw3lB6sGoZMKds=; b=F2S7GxBGE3nquF2dAMdQdr924o kRfJ/sr40LHT8/uzT5NQawWjUHR81CF7gsGSbH09GO07pW6t/dWJ9YeMSYUTTnLWtkmOxL3XCGagJ j9ejpZekjm0PZdJpwy+rNzLkFhy4xYIZ6fHpGvNpI757GuVh528yAHO9WTTnaZxQBd2JiY1kkcEGE IUr1zXz6GZAUDI/CmgTl9rMkRdjqBBRlaEXsPPJsy/SZE++BDQG+Zwsoe2mkwJcNbjrXx0cdEfAFL z+i19BdFCAFNjJHm6x0R+2fsmrfiFnxipJueqeaUCYwt3LKsZz3KSLykW8SPPk0ty9wYEPzxI4P++ QGoAHqmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tVTqG-000000087h2-1Y2h; Wed, 08 Jan 2025 11:03:16 +0000 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tVTkB-000000085dW-1NJV for linux-nvme@lists.infradead.org; Wed, 08 Jan 2025 10:57:00 +0000 Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5083rHMl007005; Wed, 8 Jan 2025 10:56:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=R8gG71 4XgLnBsd4qVfsWpG27tmknVXw3lB6sGoZMKds=; b=WbKbzw8k0CYgwjBovEBpZC aVdnNC0UAVJRmzZwl/Tt04OcxcnYuOC60+GU5qls34cOPihOTEBXkX3CPewJe3sf frMtESlUFM/f/jKWEm8Uu1RSPZHeSuySB5PYbsCf4mBGDjrslVneLw541fGASsjo 3riFrTNP0g3yxXrWdsI4zwKirCao5CHp+PqV/GiEAb9JIcapeZZALZSxZSgsKf4f 2vST3QCBKSUZsZs/QA0GoCZpHlYBtOIvcKorEyiQWYCpBw+UoiPWzm7Ean77M8Vx 3YhlEpL/iS0mPre6ju/xCODNqOZGhUhORq5XxqXAivP3RbIrEGcK2enRVzmFk8Mg == Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 441hupss69-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 Jan 2025 10:56:56 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 5089ALDa013645; Wed, 8 Jan 2025 10:56:55 GMT Received: from smtprelay03.wdc07v.mail.ibm.com ([172.16.1.70]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 43ygany9y9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 Jan 2025 10:56:55 +0000 Received: from smtpav05.wdc07v.mail.ibm.com (smtpav05.wdc07v.mail.ibm.com [10.39.53.232]) by smtprelay03.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 508AusXR6554354 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 8 Jan 2025 10:56:54 GMT Received: from smtpav05.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F1DE758043; Wed, 8 Jan 2025 10:56:54 +0000 (GMT) Received: from smtpav05.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0000858053; Wed, 8 Jan 2025 10:56:51 +0000 (GMT) Received: from [9.109.198.241] (unknown [9.109.198.241]) by smtpav05.wdc07v.mail.ibm.com (Postfix) with ESMTP; Wed, 8 Jan 2025 10:56:51 +0000 (GMT) Message-ID: <17172fda-7a31-4392-a2f3-2babb81d0100@linux.ibm.com> Date: Wed, 8 Jan 2025 16:26:50 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 09/10] loop: refactor queue limits updates To: Christoph Hellwig , Jens Axboe Cc: Damien Le Moal , Ming Lei , linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, nbd@other.debian.org, linux-scsi@vger.kernel.org, usb-storage@lists.one-eyed-alien.net References: <20250108092520.1325324-1-hch@lst.de> <20250108092520.1325324-10-hch@lst.de> Content-Language: en-US From: Nilay Shroff In-Reply-To: <20250108092520.1325324-10-hch@lst.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: lGhuSiRXskbWIaHFliShr1O62v9f7JnB X-Proofpoint-GUID: lGhuSiRXskbWIaHFliShr1O62v9f7JnB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-15_01,2024-10-11_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 clxscore=1015 mlxscore=0 malwarescore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 bulkscore=0 impostorscore=0 mlxlogscore=732 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501080085 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250108_025659_374194_A54748E1 X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org On 1/8/25 2:55 PM, Christoph Hellwig wrote: > Replace loop_reconfigure_limits with a slightly less encompassing > loop_update_limits that expects the aller to acquire and commit the > queue limits to prepare for sorting out the freeze vs limits lock > ordering. Looks good to me: Reviewed-by: Nilay Shroff