Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5470159rwj; Wed, 21 Dec 2022 03:09:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXvZQ+Ctu98zfu+fruDdcXijuIx/H/FZuX3by2HbDWf9QHsS8vFCsepF+f4seKgIwRzAF7/A X-Received: by 2002:a05:6402:40c5:b0:473:ae62:40d0 with SMTP id z5-20020a05640240c500b00473ae6240d0mr6177123edb.7.1671620993019; Wed, 21 Dec 2022 03:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671620993; cv=none; d=google.com; s=arc-20160816; b=ICvYOd4JXRknGDYYfoEfQtLhlhsfLZurbpHJEW2dpBiInFHx86btDjmiNGgquejrGW BsoOy9KYkn/jTuAWJOrGEH+qGFZEgAGVD/uYibOxhchUmz3RRoRAsi2AUGnnOJ/CwnFA BDDBs37gTPBCNkPvaBXXwd1tCLrw68ijdm+KSoCo6SpfCv5Li/lFhnN70EO2teoZCQOh LcqX4cZafZk9l+8AN9XSggxp4zSm2d6hua1CsLCPyl8S88FBggtnHC/UW3YANAC89m7N R4/8Vk5Cmae+9yTVroNla/o4/S3Ai3AhmeQUTbSVznLjD2lrbQ4/PsapIK0mpiv7K/4z ZG3g== 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=480wSk2F3WgREEBIZRNwD5lYM7sivLG3o11mUqwzDvI=; b=SFeDsMtJmtRmEP7u5Y0f78J3+rOjwArrku1/r7k3j9fdQw7QTCs1IDc6OY6EM9beIg nsPO10otFpe2hm/YgX4Wi2v4iSYdNb+RfgT//19+hNxoFwORUvbT4nmUvdawOENlK2lO Bs3lonHf0tbBXI2JlvMcRQFaSZ+6Zz/0dbMRQaF1FmViBA80OBAi8j8PtelVZ1wI0030 5xYptJiHjtfDtloH6cCmEZmmYRF/e0HexID5BaWnP2pi4HD/6g90BJcrSYiTkxNhb50l zFsUPtWipWcbsxVTUfEahV/PSAUEvts7TE0xBBxBw4MzV4KTF+AaqwbUj/iQEBo/w9t8 /kjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=m0SBhYvd; 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 x5-20020aa7d385000000b0046ca3c3df50si3576440edq.211.2022.12.21.03.09.36; Wed, 21 Dec 2022 03:09:52 -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=m0SBhYvd; 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 S234517AbiLUKiH (ORCPT + 70 others); Wed, 21 Dec 2022 05:38:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234493AbiLUKh6 (ORCPT ); Wed, 21 Dec 2022 05:37:58 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62CF9B19; Wed, 21 Dec 2022 02:37:58 -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=480wSk2F3WgREEBIZRNwD5lYM7sivLG3o11mUqwzDvI=; b=m0SBhYvd9cTYyXMTpMPxu7KP/Q ybgCtTxPldeWTL0jTbF3Qy4gm38p6ljJZfRF9u7ER31xc+oUAd4cVku/1xncKwzBrhJJuXOddjoxk DUvVpzRB/CviI/GVmB/G4EDURIo86jFr1zUNWWl34LW5Ob1nauduPx9+/NzO/wzhJ9W/YPccyZ2N0 /HUN0PUpNvHnGGPVFBdRRtM93orhlPQDy88yl8+0Ry6P7z2Dml97qv5JZjSoo8iueG+tm3j+A5YpQ 5yh94gARx920+ReZLH6j6Y05S7vDtu43Yz/GfY48rjC+n3Gfe52hTZXFs/fob5+P4H5/fH7Y32WDw Y3TY/bRw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1p7wTy-00DX19-Nz; Wed, 21 Dec 2022 10:37:54 +0000 Date: Wed, 21 Dec 2022 02:37:54 -0800 From: Christoph Hellwig To: Yu Kuai Cc: Tejun Heo , hch@infradead.org, josef@toxicpanda.com, axboe@kernel.dk, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, "yukuai (C)" Subject: Re: [PATCH -next 0/4] blk-cgroup: synchronize del_gendisk() with configuring cgroup policy Message-ID: References: <20221217030908.1261787-1-yukuai1@huaweicloud.com> 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 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 Tue, Dec 20, 2022 at 05:19:12PM +0800, Yu Kuai wrote: > If we are using a mutex to protect rq_qos ops, it seems the right thing > to do do also using the mutex to protect blkcg_policy ops, and this > problem can be fixed because mutex can be held to alloc memroy with > GFP_KERNEL. What do you think? Getting rid of the atomic allocations would be awesome. FYI, I'm also in favor of everything that moves things out of queue_lock into more dedicated locks. queue_lock is such an undocument mess of untargeted things that don't realted to each other right now that splitting and removing it is becoming more and more important.