Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1463480rwb; Wed, 28 Sep 2022 19:42:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7OHqDiEXl1MwyvNqyyRq812vQmZ/ZUmOJXIauMfUFzuS5BmxKpisRPDMEH6NWCEA3NvnAh X-Received: by 2002:a63:3e0e:0:b0:438:63d9:930e with SMTP id l14-20020a633e0e000000b0043863d9930emr874876pga.17.1664419357657; Wed, 28 Sep 2022 19:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664419357; cv=none; d=google.com; s=arc-20160816; b=I1DEMp5ZL19vphnu13aLxJVbx1E+NS1KASxpmXNYJzjF/S/j2IJIlznNzXas2fz/5p G/gzkXgNH6t4pEYBwbYXc9dwBgqtnLdMZKpa7nfirEpnubyh3fhD60T/4sPizWcpsKiI q9+7sdy5uEl3wJ2zOEIty4dAq98ZatzLE7JOpqJlqNiJ+dNBgxtB/bymgnlj6/GiVQKk ts8KaMSFfOJ9hQxH9UCA/6bzWbJiLp2vBAHiYlBcoitFlHi0P0KFxzcsOvgoEBTQ8/3X t9ihekkbDN11h/D67uq8qgKBEEQZ19oEwOHiTU/kWEmDWOi+xL4uGUI21AgAbRf7B33D 728w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature :wdcironportexception:ironport-sdr:ironport-sdr:dkim-signature; bh=XdrIf+LqyDRT7YaBKykDyOpA+j/O5mcVY7P/qYIkxwk=; b=s3cLpVPmV4Fz37p7p9V2lcY+nJdLJ79cXoQtYLeJxM/I49YT9h7EDsa4Mvo/0uProb ewGTIC+r/OI6G3Q+UxHqGTrv6ZtTBC4MDaF99kdSxesDDUDTAmPdPkGmcdO3CQm3JW35 babAk9NtpyvIyBJ7GfzrJI0wTepTW8mbtvxuCAcibtosVaxlZs0/eNzYV40lTwUvi/t3 s3hcG2qbluHtlp4mY97PbprBYGL8Ae0f9KDfgDyWGistCuQv6LQCAvGv1U3OG2yej/+/ 15yITYOmYMLWE+3cb6nXnNbW8DOKceBWn7WsRcHsbwpNjaN2Opq2A691Gr+tIlP9kyi6 3s1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=UncAMXmR; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=tI8DR50v; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020a056a00170500b0054307ac90f1si5329961pfc.319.2022.09.28.19.42.24; Wed, 28 Sep 2022 19:42:37 -0700 (PDT) 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; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=UncAMXmR; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=tI8DR50v; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234708AbiI2CSg (ORCPT + 99 others); Wed, 28 Sep 2022 22:18:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232599AbiI2CSe (ORCPT ); Wed, 28 Sep 2022 22:18:34 -0400 Received: from esa6.hgst.iphmx.com (esa6.hgst.iphmx.com [216.71.154.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CE81123869 for ; Wed, 28 Sep 2022 19:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1664417911; x=1695953911; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=3C7CtpOb0l54DwObhkR3R54ov4xRYh0NR5cxz71mUVw=; b=UncAMXmRVUQ2PZkR8vXPmBxt58asxjgdN7G0RBgq2chnhR0SvilFp+VZ Lnipzsbk8arT1Z5SiUdljgg4Rqsxxqlwma4X2o4oZBuUhLwf8ZqeVTatY DKW2ZVBJsRocegpFqyowBpaV83Z+OvG4J0oKIOid3xvWcB4DiEc3JJPrU 44LRJfpYe5UTx2TDDey9y44D014ySEG+QGzvaEGKk/wQ3WZMf0Hto/tbw q7X0J88a9uOHDDQSO49RUlGbElsa79V2+oUPLkFb3+etW6cjBfAQ3PEdB PfP1N66dbpL07Q/V+VdoSJqUrMfV6363qd5+Zsw6eFvmVhpRD+9h7bL/J A==; X-IronPort-AV: E=Sophos;i="5.93,353,1654531200"; d="scan'208";a="212947462" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 29 Sep 2022 10:18:30 +0800 IronPort-SDR: lNAXpVL/tXsASWKd6pQOM+qAWjNsvhGlJudcAXuMdSZgI+mezSVr5Kc8RhppIJ8/JmfDw4JTxs olTXibJBONVD6Jyl5ZC5HIt4fM9JAq1d5ZTxFRl75yZvj8MSdiZH0umkc49QADrXw7id44zyp9 3ckcO9+Rvejl9nf0pxOZ46K7zKHQG21wa3IGuK/JnBCbdQNuseNTUayNZRNuD06IiuG2AmRJ6E jPZ75VJr+hPLTdRKMKQCosQuEMRZ4kEtUbZQqXz/j/S3a4cR/Iudt8+a7J4S+VHBek9Y8yQ4tH qbzn+20LbFm8Phfht8UJK/PY Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 28 Sep 2022 18:38:25 -0700 IronPort-SDR: /Wm5ASEt4XWaPksdY7wvZ+h1EGkEmhVFL1FrRI/WGlgI9K0WSH8kBeS76MKxOy9MgoliZwWVCm yQEf/Gk+MZL3k7i/UAqpXmgm+IXeD3bSarpkHCZuTZQ2+z82vf2CaF44RIIwhqvFBhQh2Z7xeT NPsqAripytFtii3gjD7Vt4epPkJEAqbFFKYisHiOTrOXzpWSQVR7bTIWfdLYLzs3FqK2JuWNGv MRnHaPJk/5yNBhJ5Bpy8F4SHONS7BEgzVj3ME9hV4UvsJLwb8yBIzUxy7fRYKnLOhsycoUdTz7 cc8= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 28 Sep 2022 19:18:30 -0700 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4MdH8k1J1pz1RwtC for ; Wed, 28 Sep 2022 19:18:30 -0700 (PDT) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:content-type :in-reply-to:organization:from:references:to:content-language :subject:user-agent:mime-version:date:message-id; s=dkim; t= 1664417909; x=1667009910; bh=3C7CtpOb0l54DwObhkR3R54ov4xRYh0NR5c xz71mUVw=; b=tI8DR50vqiC2j/8wIJUjpJtRnK6KvK0GZRlw1aE9mmaLzwCxePb B8tLvpChjjEk1TM47jRMKRN7PHaptnNscM/v3sD8VaV8O5iXTqH7zjB3nrkwj5Qj GUGfrTvG7LsGU0CQMU4L/npcc1Ya3plbh9wScKz/cvgnJfzZbL505M38pHSPXDCU AuA8IxWMUNWPQKclYSM2TwB4+rCp4jYBilSftkl2jN9JFizDbwCIuTRjjiim21qz CVgo/Fuhl5WaAzjZ5/HQmth6Fa2VcN9YHiK3B7Fqr2QBytPaJ5diQJLLpZ79DQSs nn2ou/6Utx4fZi++LqYtX7blKc1/rPw2nAA== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id zBplLxIyU4V6 for ; Wed, 28 Sep 2022 19:18:29 -0700 (PDT) Received: from [10.149.53.254] (washi.fujisawa.hgst.com [10.149.53.254]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4MdH8h010vz1RvLy; Wed, 28 Sep 2022 19:18:27 -0700 (PDT) Message-ID: Date: Thu, 29 Sep 2022 11:18:26 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH 5/6] scsi: mvsas: Delete mvs_tag_init() Content-Language: en-US To: John Garry , jejb@linux.ibm.com, martin.petersen@oracle.com, jinpu.wang@cloud.ionos.com Cc: hare@suse.de, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, ipylypiv@google.com, changyuanl@google.com, hch@lst.de References: <1664368034-114991-1-git-send-email-john.garry@huawei.com> <1664368034-114991-6-git-send-email-john.garry@huawei.com> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <1664368034-114991-6-git-send-email-john.garry@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS 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 9/28/22 21:27, John Garry wrote: > All mvs_tag_init() does is zero the tag bitmap, but this is already done > with the kzalloc() call to alloc the tags, so delete this unneeded > function. > > Signed-off-by: John Garry Reviewed-by: Damien Le Moal > --- > drivers/scsi/mvsas/mv_init.c | 2 -- > drivers/scsi/mvsas/mv_sas.c | 7 ------- > drivers/scsi/mvsas/mv_sas.h | 1 - > 3 files changed, 10 deletions(-) > > diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c > index 2fde496fff5f..c85fb812ad43 100644 > --- a/drivers/scsi/mvsas/mv_init.c > +++ b/drivers/scsi/mvsas/mv_init.c > @@ -286,8 +286,6 @@ static int mvs_alloc(struct mvs_info *mvi, struct Scsi_Host *shost) > } > mvi->tags_num = slot_nr; > > - /* Initialize tags */ > - mvs_tag_init(mvi); > return 0; > err_out: > return 1; > diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c > index a6867dae0e7c..0810e6c930e1 100644 > --- a/drivers/scsi/mvsas/mv_sas.c > +++ b/drivers/scsi/mvsas/mv_sas.c > @@ -51,13 +51,6 @@ inline int mvs_tag_alloc(struct mvs_info *mvi, u32 *tag_out) > return 0; > } > > -void mvs_tag_init(struct mvs_info *mvi) > -{ > - int i; > - for (i = 0; i < mvi->tags_num; ++i) > - mvs_tag_clear(mvi, i); > -} > - > static struct mvs_info *mvs_find_dev_mvi(struct domain_device *dev) > { > unsigned long i = 0, j = 0, hi = 0; > diff --git a/drivers/scsi/mvsas/mv_sas.h b/drivers/scsi/mvsas/mv_sas.h > index 509d8f32a04f..fe57665bdb50 100644 > --- a/drivers/scsi/mvsas/mv_sas.h > +++ b/drivers/scsi/mvsas/mv_sas.h > @@ -428,7 +428,6 @@ void mvs_tag_clear(struct mvs_info *mvi, u32 tag); > void mvs_tag_free(struct mvs_info *mvi, u32 tag); > void mvs_tag_set(struct mvs_info *mvi, unsigned int tag); > int mvs_tag_alloc(struct mvs_info *mvi, u32 *tag_out); > -void mvs_tag_init(struct mvs_info *mvi); > void mvs_iounmap(void __iomem *regs); > int mvs_ioremap(struct mvs_info *mvi, int bar, int bar_ex); > void mvs_phys_reset(struct mvs_info *mvi, u32 phy_mask, int hard); -- Damien Le Moal Western Digital Research