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 X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D7BCC4338F for ; Wed, 18 Aug 2021 07:29:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0693261076 for ; Wed, 18 Aug 2021 07:29:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238899AbhHRHaH (ORCPT ); Wed, 18 Aug 2021 03:30:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:28961 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239020AbhHRH3y (ORCPT ); Wed, 18 Aug 2021 03:29:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629271757; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wHdlhPVb5zDB2T7TPY+IaDHYh45fMOraPn2aUPWXsOA=; b=ZZfdCTlIsbta2lKS3lWm9Xi1mpDHAQj4e7rR1Ha4yszE63LcwvWBihP37uBDjVUhKSl8M9 PyH9C5L1U+I//WMV5HWLAiDs9TooIyA0GZiiWHLDGqJuzi1JrT8aiAoPYBW4goMBr4LpJT K3Ymr80C3ujW1ArNLc4R6YmpH8i06QI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-514-E_jdO8OqN_qkGlNMT1-Q0g-1; Wed, 18 Aug 2021 03:29:16 -0400 X-MC-Unique: E_jdO8OqN_qkGlNMT1-Q0g-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 03277C73A0; Wed, 18 Aug 2021 07:29:15 +0000 (UTC) Received: from T590 (ovpn-8-40.pek2.redhat.com [10.72.8.40]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 18A871AC7E; Wed, 18 Aug 2021 07:29:02 +0000 (UTC) Date: Wed, 18 Aug 2021 15:28:56 +0800 From: Ming Lei To: John Garry Cc: axboe@kernel.dk, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, kashyap.desai@broadcom.com, hare@suse.de Subject: Re: [PATCH v2 07/11] blk-mq: Add blk_mq_tag_update_sched_shared_sbitmap() Message-ID: References: <1628519378-211232-1-git-send-email-john.garry@huawei.com> <1628519378-211232-8-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1628519378-211232-8-git-send-email-john.garry@huawei.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 09, 2021 at 10:29:34PM +0800, 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 -- Ming