Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp386984pxb; Mon, 13 Sep 2021 22:52:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfhwJjJNuHjigu7mbkDrdy7YtDa3C3jiMbZemimhqHhshn1J7UeCabNeYv4qAIv4U4SzmP X-Received: by 2002:a92:cd0a:: with SMTP id z10mr7822166iln.207.1631598755642; Mon, 13 Sep 2021 22:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631598755; cv=none; d=google.com; s=arc-20160816; b=VWeA8LVZLUoczSRKDaULcmBw2KXuJ9IezoEr8Sd9hIc2sqWMVuSvvRmTEWBa7JIx/f YFvwZshafhcheIitCxw8MXf6G+Qe/lRN55+1I3uLDFy66ObicNeVYF9KUyPYpLPcDYHm HQ+M5y9I7jNlIlbdpP1NTCEhieYYgxRJhOM7mTJquOwhwmxRyLSj/v5pNWcheQ5Oy6CJ v+mxmCgysVE51DKbZEqhWu+THxkn8b5AwcGjy7rHMAorA4dUkhjkabXWfyibiC31xDII /X+7hH3C5aGP60MXfWLa5dQQrvlSDDnmp7n0BvimP+rMUr1d5TsuEVolcKRjSaVwCl2q iqhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=4izNTayNpBPgK5BBEhBrNJipHk2klZzanheh9jekqy4=; b=SaUxObgR/IMDXFvgl8oq6AmYUG1sj1dwZO0M8MAadzGJKM+BQZ30NjGv7tpkYHaI7t fmJ8JezUOChSpG8z/9bQnR2s8FiUcnUUVjBx/CwEDq7xiI9/pZTZIdTkpdu3My6I9Rnb 3myWioxWa/g9bB1X2M2qP5LIOko3OoVlsVXw2LiyiboypALQV+rDAUFXTIxWCn4rdqfX Rw/tq4nRe8e41gm4debPkJ+I4iLmRX34AU6v143Qs0DqWnwjSmdKoKE9gmb1j6SKLGIp /PPXXg5sO+EVH2+XsTYPYpCFQ/y0t9uS2pyO0wt9WQkPl/Czbi81F1Tqbrp/UKe/ztnj DtXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=x6U8VFQP; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si9862903ilu.143.2021.09.13.22.52.15; Mon, 13 Sep 2021 22:52:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=x6U8VFQP; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239815AbhINFvj (ORCPT + 99 others); Tue, 14 Sep 2021 01:51:39 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:56006 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239739AbhINFvi (ORCPT ); Tue, 14 Sep 2021 01:51:38 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 90EA821A82; Tue, 14 Sep 2021 05:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1631598620; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4izNTayNpBPgK5BBEhBrNJipHk2klZzanheh9jekqy4=; b=x6U8VFQPMjnAPchcdgswn8RhOnZbNUNJU52cU6rVHO0QhyToblPphaSXdt+RDSrel5oXW+ xahg8nSDL/aok0e4HDuydtNkuiSsLGidAa/Y5gm4hplpPLEu2IL9fzPf/tWAkgWUxNLOe5 HMlrw/IMNT+WINJEcxojr528DpOIm2A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1631598620; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4izNTayNpBPgK5BBEhBrNJipHk2klZzanheh9jekqy4=; b=jTwHSAdzpeIFK7nK00QshXcDOI3ku7kuzsdyR6evHBKu7Wx8/Ex3P+/gBZ2u+/sk8clk+d sE05E6RwUY4TfTDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 61EDD13E4A; Tue, 14 Sep 2021 05:50:20 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id uCP8Fhw4QGEqVAAAMHmgww (envelope-from ); Tue, 14 Sep 2021 05:50:20 +0000 Subject: Re: [PATCH RESEND v3 11/13] blk-mq: Refactor and rename blk_mq_free_map_and_{requests->rqs}() To: John Garry , axboe@kernel.dk Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, ming.lei@redhat.com, linux-scsi@vger.kernel.org References: <1631545950-56586-1-git-send-email-john.garry@huawei.com> <1631545950-56586-12-git-send-email-john.garry@huawei.com> From: Hannes Reinecke Message-ID: <633b747f-66ec-9562-bcab-090636ec35e0@suse.de> Date: Tue, 14 Sep 2021 07:50:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <1631545950-56586-12-git-send-email-john.garry@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/13/21 5:12 PM, John Garry wrote: > Refactor blk_mq_free_map_and_requests() such that it can be used at many > sites at which the tag map and rqs are freed. > > Also rename to blk_mq_free_map_and_rqs(), which is shorter and matches the > alloc equivalent. > > Suggested-by: Ming Lei > Signed-off-by: John Garry > --- > block/blk-mq-tag.c | 3 +-- > block/blk-mq.c | 40 ++++++++++++++++++++++++---------------- > block/blk-mq.h | 4 +++- > 3 files changed, 28 insertions(+), 19 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer