Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp41864imn; Wed, 27 Jul 2022 14:37:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1usDD5aXoboHZp+oGLJ7ECAMqv4od160YtjNA5hfAbIuyXVCc2Q0MQRthQqHw+SjD8kvod4 X-Received: by 2002:a17:90b:1bce:b0:1f0:505c:74f7 with SMTP id oa14-20020a17090b1bce00b001f0505c74f7mr6589037pjb.87.1658957847302; Wed, 27 Jul 2022 14:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658957847; cv=none; d=google.com; s=arc-20160816; b=RiRj7YGJTSSko89BtLU9tLouXb7suXw8NBD9KmtiSJ2YLdTmelyMLlooDAjVbDRTN8 rujOHT0fQmQMrVR9TZn0QYORoaJOvoPYpGs5vnYQ/F/K6Xlp249R1C/TmBiciE24qsxe xm38f0I0wugM9nANVgnEhXz/g5MQGbvrNncXK2Ybgum/jmDpP+lWbOlgcGoovaWkzHko qmyjIpffCgK+lertaCjkeuqZ3FJR3EajNp7suu+99E342cTdkQY1yOrzA8oehtilBy+N P3mSm7EQ5CXeHCUPnKf4FKvqSbATqHWIFWSrbbwwdLaVyxA2sDNGoGsZioeuaRPzTbry VLQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from:dkim-signature; bh=X02B8Yte5mrHvbzJA1C8/u0TiqFcT/7kiaDoAehrDmE=; b=PEmC0co52xcmUouLr0iDZ2MKnUekrjaPFdnarg1m3MvolNzB2JKsDsa1/RTJzbgQwz 9U8Daa2MhfrS0qg7JmtH9puwBuviAA1NwlEmueVwcRf7ebDKscDKooH6yUjF2VQiWtU7 NzYbjwf4WAVBNTMd9WMmsXCiw8XPGJyKViF2QMe3JCx4bW9flDIKEMFF9CjWzTMD7xMu 2hp/T69BejzI6ZHpHcmPqFLcXvs1Q67uly6t6il2pMv/PjPRroIltiwV8m9asbHchKFj iStJOwvpaoolETEMdqsClFHHfi6TfW5w6tz7NBiLjtzd+hzFxgqgouLZBUpz7aABRRzs XNtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b="HfWyIa/R"; 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=NONE sp=NONE dis=NONE) header.from=deltatee.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a17090311c400b0016d2c5285e4si23505990plh.413.2022.07.27.14.37.12; Wed, 27 Jul 2022 14:37:27 -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=pass header.i=@deltatee.com header.s=20200525 header.b="HfWyIa/R"; 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=NONE sp=NONE dis=NONE) header.from=deltatee.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234184AbiG0VJ3 (ORCPT + 99 others); Wed, 27 Jul 2022 17:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236904AbiG0VIi (ORCPT ); Wed, 27 Jul 2022 17:08:38 -0400 Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7DA8664E8; Wed, 27 Jul 2022 14:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:MIME-Version:References:In-Reply-To: Message-Id:Date:Cc:To:From:content-disposition; bh=X02B8Yte5mrHvbzJA1C8/u0TiqFcT/7kiaDoAehrDmE=; b=HfWyIa/RTtuECHabDqoiD/3dy8 sOFQtL1ukve4az5RriUk4fUedKiBCHtWztTwmnlGIoPiZc5JKdPZfSZNzcDHn6wnbmMbH2ldVgX66 HsLRrU0C6OVDb49K6lR8p4dJrptlglXtcc39TKdZg9Xi34nsX8xNSun5LfgMYO+mLhZkihuTK26Ne fehu9EV+P3+fnb3p2kKwnY7+uq3nZC5eHscYytDNwYAdJSPXqnqM9c9moxv9uoeTU5PjiQ05N8pZY PrMZ54eFJgRhGk4W7VsnqCldGMV8mtpPF48eOBbdBt/XeUFpOy/XaJcWBnPlrNdQUn0FVL6fV53ZO d2+9pEUA==; Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oGoEG-001pyF-GI; Wed, 27 Jul 2022 15:06:06 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.94.2) (envelope-from ) id 1oGoEE-000VI3-UZ; Wed, 27 Jul 2022 15:06:02 -0600 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, Song Liu Cc: Christoph Hellwig , Guoqing Jiang , Stephen Bates , Martin Oliveira , David Sloan , Logan Gunthorpe , Martin Oliveira Date: Wed, 27 Jul 2022 15:05:58 -0600 Message-Id: <20220727210600.120221-4-logang@deltatee.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220727210600.120221-1-logang@deltatee.com> References: <20220727210600.120221-1-logang@deltatee.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, song@kernel.org, hch@infradead.org, guoqing.jiang@linux.dev, sbates@raithlin.com, logang@deltatee.com, Martin.Oliveira@eideticom.com, David.Sloan@eideticom.com, martin.oliveira@eideticom.com X-SA-Exim-Mail-From: gunthorp@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Subject: [PATCH 3/5] md/raid5: Drop unnecessary call to r5c_check_stripe_cache_usage() X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that raid5_get_active_stripe() has been refactored it is appearant that r5c_check_stripe_cache_usage() doesn't need to be called in the wait_for_stripe branch. r5c_check_stripe_cache_usage() will only conditionally call r5l_wake_reclaim(), but that function is called two lines later. Drop the call for cleanup. Reported-by: Martin Oliveira Signed-off-by: Logan Gunthorpe --- drivers/md/raid5.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index e7e02a979670..e09fa55960cc 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -810,7 +810,6 @@ raid5_get_active_stripe(struct r5conf *conf, sector_t sector, if (noblock) goto out; - r5c_check_stripe_cache_usage(conf); set_bit(R5_INACTIVE_BLOCKED, &conf->cache_state); r5l_wake_reclaim(conf->log, 0); wait_event_lock_irq(conf->wait_for_stripe, -- 2.30.2