Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7410374rwl; Mon, 9 Jan 2023 23:56:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXvsir/UH+TChTpoyqhdlNTCNE/oI91kcdbEofwoo4KBQXDop9sMLbusqHzCa/c5SGXlDqrp X-Received: by 2002:a17:90a:8d0d:b0:226:e0da:fcc2 with SMTP id c13-20020a17090a8d0d00b00226e0dafcc2mr13516237pjo.47.1673337415200; Mon, 09 Jan 2023 23:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673337415; cv=none; d=google.com; s=arc-20160816; b=JyMdGFCOcKffv1cnZxXiFaqPIQ2pLZIIm+iS1UgLApB2JomDrXzcSe/voFGva6Cx0x g6Dxn5/2yd8lVgzKR/FyAgoJvARPrJUQgfXRFoWLQUKl4lWJVq6oIssqChkuNpBolg48 P/+m2LMoFGUHNKZgpzK2ntkiOLNAlFqVzpRW884UeAYVJVCJ1jRAscpx0ZoHVqSNpJ3E iJiMwJrWVty4pdbd+QFe98mFUIo5M2hZKYc2/RXP3B2RmQ4hTKcT3jy16ISZUAC2ghcN pXrop+IhER6DBf4LWET9GtGNzkcLMU+7gedBJ3hF/k1L17gZ6H5K+uf6Wap9V3mUmdxg mMeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=aXAKIfiPN8eOO15/tzzG9yL+whwHJGtHCvBeVWzz//4=; b=opFI82fNKZ0TKWg3uGWY3C/cYkoTyYisq+W1rFUxKQsKWNorfYW+HMSDG0pDN7HeRF oCG/O+lQfYb0TAHucG1qOpvHR/IJVTHVYesN2fdOB3Oyk1EA7sQqD2MEmXSRxQ6A9Ltb 56E7zvCFqIY73Sjo8NDTNlHjI9AjEJr2ZYZYp07l6MOK4lk9DBy5y04V4kzFSCXZuMra gpdx0Dl020VW49WGRYgAKhGYW1w3MVs+KK08cqMuvKli9xTy60IGK/5dR73eRmHrsIA7 YKFxWtJ4KFD3RawrMuCAUpx3h6phJb+F/VBjOh8JI8jxlpQWmdxdBNRHENEgrg3OA3Tx LDvQ== ARC-Authentication-Results: i=1; mx.google.com; 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 p14-20020a63740e000000b0049457cea998si11743825pgc.410.2023.01.09.23.56.48; Mon, 09 Jan 2023 23:56:55 -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; 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 S229900AbjAJHJg (ORCPT + 53 others); Tue, 10 Jan 2023 02:09:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjAJHJe (ORCPT ); Tue, 10 Jan 2023 02:09:34 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 858213FA04; Mon, 9 Jan 2023 23:09:33 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 2104168AFE; Tue, 10 Jan 2023 08:09:30 +0100 (CET) Date: Tue, 10 Jan 2023 08:09:29 +0100 From: Christoph Hellwig To: Tejun Heo Cc: axboe@kernel.dk, josef@toxicpanda.com, hch@lst.de, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] blkcg: Restructure blkg_conf_prep() and friends Message-ID: <20230110070929.GH10289@lst.de> References: <20230105212432.289569-1-tj@kernel.org> <20230105212432.289569-3-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230105212432.289569-3-tj@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Thu, Jan 05, 2023 at 11:24:30AM -1000, Tejun Heo wrote: > * blkg_conf_open_bdev() is updated to take a pointer to blkg_conf_ctx like > blkg_conf_prep() and can be called multiple times safely. Instead of > modifying the double pointer to input string directly, > blkg_conf_open_bdev() now sets blkg_conf_ctx->body. This looks pretty awkward for the externals callers of blkcg_conf_open_bdev in blk-iocost. I'd either keep the calling conventions as they are at the moment, or just open code blkcg_conf_open_bdev in blk-iocost.