Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp474222pxb; Thu, 17 Feb 2022 08:01:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/LPfxUG5R4DTpLfcnD62Mkdw2aORpczQCNAuYmne/kps4D8+61sZCUk1wDluCsI133g/B X-Received: by 2002:a17:906:1ccb:b0:6b9:f52:5c60 with SMTP id i11-20020a1709061ccb00b006b90f525c60mr2850209ejh.509.1645113682052; Thu, 17 Feb 2022 08:01:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645113682; cv=none; d=google.com; s=arc-20160816; b=Taa/LG77S9uhkqZc6oGydD2dYSfQQdB34mUEuNYrg10pL0r7OMxvYcGTm8JNuN9j7w o6femLSPyM0UeBytt22MUaHWFaWF+9o0gnDxCD28IsYmMC3tfoOO5hzGEHi7CEd6zMHd l1MB+N/9IcNAV+TQjiRZy6SwrlGqzkt0wrQ5tgH7ikhbrH89cHHNpl/S0gKnh1of1KGK zVVi9K+NWSJ0LeGRjgNmgRHXruKxqU36oEndhLM1ZaYQrUqk7Pv6wxlEA4gYXJuvCsdd Zg5s1vH4mH2K3J8OG53VVGsZZBeYIhdNODndBvXNZDyGih1aQCZJBvdHuAwPHLJyUbBp dutw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=C64EWtN/f9bCsY8A/y864AzqVeE3CzsItNdn/gVkzik=; b=zbZAsMWDFlK+G8QCoCAWhrdUHNibvqV1HikDDxKPbFXD3rMedGqn8SFYhMfgKg8O3j T0ZD/Nfcbc662auyowourS1U8TxppMSS0DigeOVoCxwvqZjXZe8GW0TkZUy4SSStxYyT aIX/NNE2lKd02EXWgSIhocKbZr20ZSLzbc+RTTJvIuK0sMmddoVCGb/+Y6ifxhBbkMy5 aIDN3OveH+TSzEQdLBXyPM95/0KuwLgYqBlS9OTuLegXOkL5ymVsc2vDB3gg8TrHsZfp AUadhW6RotXBaJ0RRzTqhfHM4omiACpxB1Tz+xALtFAj4+mEgVEKwnwPR6okATf67+DQ NKzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=jCfaIcxl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp33si2958057ejc.530.2022.02.17.08.00.43; Thu, 17 Feb 2022 08:01:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=jCfaIcxl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242728AbiBQPsy (ORCPT + 99 others); Thu, 17 Feb 2022 10:48:54 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:58906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242582AbiBQPsw (ORCPT ); Thu, 17 Feb 2022 10:48:52 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23A6015C672; Thu, 17 Feb 2022 07:48:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=C64EWtN/f9bCsY8A/y864AzqVeE3CzsItNdn/gVkzik=; b=jCfaIcxlLYVA6BVbQUUqoq9vs3 ttepisGsE54fuHbaxe7EZGo8aY4x5XyqA0Gq3DycWRmaSI47gwocc9MsqKRASysh54GhMwhY1GLwk gceCtl3pqUzVV9ADo9SxQCcFaLuNdArZwG8Ijbx6Avbpczu5T8YWM6dloPLyr0hYmuIISBTyrVnOM DYRhGWt1EwNRQ22wwnIC5imtDAx4Qo9i/eYZybjnEaVhoWoAE+p8ckk98ByTUVWS9uvTcdkBhKlKN aIxNyleEJsc4zglXLG3+zbpoXIgldXFi59/lpjrt3hTRbacTXZTR3p/PzcCfgqle0FgaWes7/niLS EBD2gAZQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKj1F-00BL4C-UU; Thu, 17 Feb 2022 15:48:33 +0000 Date: Thu, 17 Feb 2022 07:48:33 -0800 From: Christoph Hellwig To: Jens Axboe Cc: Christoph Hellwig , "Wang Jianchao (Kuaishou)" , Bart Van Assche , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] blk: do rq_qos_exit in blk_cleanup_queue Message-ID: References: <20220216113212.83000-1-jianchao.wan9@gmail.com> <96deb063-f4ef-fadd-543b-e905495898f6@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 17, 2022 at 07:55:16AM -0700, Jens Axboe wrote: > > from Jan 22. Although it would need a rebase so it can be applied > > without the preceding patches. > > Can someone respin that for 5.17 then? I looked at it and it I don't think we can do that without a lot of the prep patches. That being said I think this version of the patch also is buggy, we want the policies shut down in del_gendisk with the queue frozen for normal operation. I guess until we can move the initialization and teardown entirely to the gendisk as in Ming's more complex series we need to keep the call in del_gendisk and also do it in blk_cleanup_queue. For the normal shutdown on disk that were life del_gendisk does the all the work on the frozen queue, while for queues that never had a disk blk_cleanup_queue will clean up the unused rq_qos.