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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDD25C433EF for ; Tue, 1 Mar 2022 13:30:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234137AbiCANb0 (ORCPT ); Tue, 1 Mar 2022 08:31:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231678AbiCANbZ (ORCPT ); Tue, 1 Mar 2022 08:31:25 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CB3D8A6C2 for ; Tue, 1 Mar 2022 05:30:45 -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=qdZCnva8tVIXJlJ7NHdPQHW3ikx+B8KwlGVASTf92jA=; b=j3HodTijfrd7Vzqen8Y/bUq3FJ jaZFxgTCvtidyW5R4d32wOE95FZitYfVW/EUP207G13kYlCWiwqNwod4qvhPp4xlfmYXLt0MRO0pG bvDxl/StdqxmMlwx8AXrlqGLjkSeryP+7btVnYBEp49XQYAEWp/jFSwXgnpyjQrJIBMgOQxqTNvW6 E2JKuV7pM0XH2KFen11U/4BlOArmZ2cdJ1+uCw6luyi0fQNW+cjTsmKvFITi7USdh1fcb03rG75Tw 1jpR1arZDAiLzewcEvkuILFQoHQOKo3UvpQSaIG05aD2WBBSf0LJtNkjtNaHuRlqn17IWWc1swI2U yT/80gdg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nP2aS-00GujT-7G; Tue, 01 Mar 2022 13:30:44 +0000 Date: Tue, 1 Mar 2022 05:30:44 -0800 From: Christoph Hellwig To: Ming Lei Cc: Jens Axboe , linux-block@vger.kernel.org, Yu Kuai Subject: Re: [PATCH 2/6] blk-mq: simplify reallocation of hw ctxs a bit Message-ID: References: <20220228090430.1064267-1-ming.lei@redhat.com> <20220228090430.1064267-3-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220228090430.1064267-3-ming.lei@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Mon, Feb 28, 2022 at 05:04:26PM +0800, Ming Lei wrote: > blk_mq_alloc_and_init_hctx() has already taken reuse into account, so > no need to do it outside, then we can simplify blk_mq_realloc_hw_ctxs(). Looks good: Reviewed-by: Christoph Hellwig