Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp384672pxb; Mon, 13 Sep 2021 22:47:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE7SdDDMFTEvyEd27ul7hQ3FIg7zy7LQaJPbXJfJn2XRfRQjbykdb7fyybgC1gYnNvc8Op X-Received: by 2002:a92:dd88:: with SMTP id g8mr10567617iln.306.1631598476269; Mon, 13 Sep 2021 22:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631598476; cv=none; d=google.com; s=arc-20160816; b=tnC/fb75RTxT6UraMFdhq8VR5pkxpYVb2/Suw4mI3xzIo6D+KVcsvTuJuROhAvLsoS afxFS1R9WPS3AeeUIFNaHTs9FDqNKsRWEx6Wd7H0tYQOz9QFtkB1IV4SnBgadjH7M7nK IJll7VcEout+WN1tzO7lSuEPgzwHU37vSpTMG2SFgWoQm4DTv1V5bhaI+EGttL59+saN zd+iC2u8kiLGl/nKSDHdVszgXZAcohIIp/FN5YZuecM+bZqyUtInLxfPoN9wXn6F5mJc cUWpuFD19n7tE03mWXK/MCPrmAQEw7LpKiA1xYRcmdGlfAy7KkvIDvWf/HUI6pO5QXDO hAAw== 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=UQ7mmFSIr95iCRc7r7mNYN0Lv58SToo/IItp6N+n3KA=; b=UPrOzlk/IM8TIcXBe29emx2mOqPVYA8InQDaXC4S6mO4e3JNapQbGVyzs0cQRgZ7Cs LCpIHIPuwnR2MLRjK6Hi4zWu88v2m0j9C/o9BVNZ/QoGt5fuPkP6M2mAd4/QHk6yhmvT WBKxGG5AdAMaUIbYvoANswEC1lpIu4+D1sHb+mTF9g8lvk2Q3aZ67+Qz5YO4YELssnBY RJVLktTZiq3BU36CmfP5cWoF4QOfpXS/Zd/5W3YEL3r7nSW2dXWatXYSOymZrrzv7Pgk +qGgqNiU6Dn08Tqrp/sVbV5j+CJs5jT4AL3hR/tjrMa8fVw07fX7ipjzwJQ2wPsS9+o9 CztQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=sUvYjyAV; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=5h63+yS5; 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 d188si9405551iog.62.2021.09.13.22.47.44; Mon, 13 Sep 2021 22:47:56 -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=sUvYjyAV; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=5h63+yS5; 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 S239773AbhINFsQ (ORCPT + 99 others); Tue, 14 Sep 2021 01:48:16 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:55614 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239398AbhINFsQ (ORCPT ); Tue, 14 Sep 2021 01:48:16 -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 532E7220AF; Tue, 14 Sep 2021 05:46:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1631598418; 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=UQ7mmFSIr95iCRc7r7mNYN0Lv58SToo/IItp6N+n3KA=; b=sUvYjyAVx+Fz5WXwxxGYVKFUTpySP4to5Qnx8FUJ1Go3KMVWtXcK49vYSzU6jid++hb+h2 fw9C1HipywKxf8MFg2IceKQoFRi/Zf1E3lUH6oTFFE+wzlS47ravYgaDuT9CbP9v0+we+c ff8yiU5sBbynzYwbT1NWCdqmRSpGYoA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1631598418; 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=UQ7mmFSIr95iCRc7r7mNYN0Lv58SToo/IItp6N+n3KA=; b=5h63+yS5YZeGQ6twiXE/NEBz9k005ZKh2LNdfxW4lBPFnCQULIHP8l9Ct9gSxJTmD+bxwM zCOHVnrZdjVvgRAA== 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 D593613E4A; Tue, 14 Sep 2021 05:46:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id CqqKM1E3QGELUwAAMHmgww (envelope-from ); Tue, 14 Sep 2021 05:46:57 +0000 Subject: Re: [PATCH RESEND v3 09/13] blk-mq: Add blk_mq_tag_update_sched_shared_sbitmap() 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-10-git-send-email-john.garry@huawei.com> From: Hannes Reinecke Message-ID: <0e3e70d5-9ce0-36f6-1340-1800c7dddfd5@suse.de> Date: Tue, 14 Sep 2021 07:46:56 +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-10-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: > Put the functionality to update the sched shared sbitmap size in a common > function. > > Since the same formula is always used to resize, and it can be got from > the request queue argument, so just pass the request queue pointer. > > Signed-off-by: John Garry > Reviewed-by: Ming Lei > --- > block/blk-mq-sched.c | 3 +-- > block/blk-mq-tag.c | 6 ++++++ > block/blk-mq-tag.h | 1 + > block/blk-mq.c | 3 +-- > 4 files changed, 9 insertions(+), 4 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