Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4440353pxb; Mon, 21 Feb 2022 21:41:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwErBfJ1An7lWGDF/pA01mfF9i2E/bxCPq8IWaPoBUa2e1eq8DGGMh66QcpNKljW/uwUF2C X-Received: by 2002:a17:90b:fc7:b0:1bc:4fc0:6fbd with SMTP id gd7-20020a17090b0fc700b001bc4fc06fbdmr2453897pjb.198.1645508482287; Mon, 21 Feb 2022 21:41:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645508482; cv=none; d=google.com; s=arc-20160816; b=L4BVG30+5nj7PqZP4tBgL4ZBoNgIj+t4Xwf1bYiB4daGsQYUzcIMnYZ76cRofpQQo4 RZ0ww6oui8zUaxmVuAj/x1/tyVhPZ12yXzCuCYDFCemK8BtFfeNVbJyjGd0sypgrxv+L DHgoaPVwGwKFz18MkyusU247Vu50aeuKGy3eEgpPkk9JvFBX3jf9Q7ACGeqTvtKxBk58 I5tAhYxScYE1bO99cqAVbOqnllDM6GluKoGfoDcpYScOJBrHCk+S4w8dxwA4tnzWlz/h uNyEULbEJL8YEgx/29o6si2FePJ4s4I69RtYnU8tVhVse1bgdcS6FqoLoMACSluRDgHN /BzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7zGDZ5H/S7mS1YpBywBEI0ULB/XIqNxTZm3ae4D2o5Q=; b=aEg8D+m2GNyvUGQEjDmsHVgrSroI45/AtQzUm7q3y6R0h4h6R+cyRW+AdzG35QV1Q9 9dkrPbzjHj+Pu74hlSSztP9u2fOt7Z13KIGHD45t0FvDQNdRLLfT7akRnz+xbhbO6QhU uT9gNNIuoBZdsa0LuHcoYvPo3Z0Pcp+EPT456NAeJMqHyQS6KXgHWWa6wIoF62nIYkio hODONTs6A1K5PRkUcEN2dJpffa16gyEeU69lpy3kh+2zlwBqW6bU86Lkoo0d4J0WI9kp yGFW14O27LPOw2FX60hp1qQO/8qlXdsmiJFVPSHzpaJULBLrq4sb5AZxjTZ3v55/Fxdu eEJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N1U1Bgoy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d7si1127250pjw.36.2022.02.21.21.41.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:41:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N1U1Bgoy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 976AB12D083; Mon, 21 Feb 2022 21:07:38 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236195AbiBUXSQ (ORCPT + 99 others); Mon, 21 Feb 2022 18:18:16 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236154AbiBUXSE (ORCPT ); Mon, 21 Feb 2022 18:18:04 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3D99245BD; Mon, 21 Feb 2022 15:17:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645485461; x=1677021461; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mCvpydHF1iIboEBA+Uw1DVwXJZydjDJfqmrcbQB+Qt0=; b=N1U1BgoygZTPBRZWdVDXoBTFW6VgSSYMIRxermN2rX/MVjvK8DaNwNUK rcJhOPVGXTx9d+5d4+wjxSArLG2nlxo9QG6OZ4GubgCse4wLZUH5pg3S+ 66D/buX2Fcx+GjRoKXqHiD05tks2In1vrrGl256X2sN2ApitMn/wl+2we pJRIsi2g5PCg+qfQFDdY1UTkjSx1M91dx2VOaEvhj3MSUjvepW6OEaZy7 ol7Oo6tJrWVZXJIZjgoPltmPF4w9OiJHDUMIRaoB5wGMNJ3qRqbd2Gy/A w/k5DJT8RVlqAMVMF/WtDS0M8EInvFe44qQYgo2w5an0dgQNHbyGKqrGq Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10265"; a="251530388" X-IronPort-AV: E=Sophos;i="5.88,386,1635231600"; d="scan'208";a="251530388" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2022 15:17:40 -0800 X-IronPort-AV: E=Sophos;i="5.88,386,1635231600"; d="scan'208";a="638694432" Received: from lab-ah.igk.intel.com ([10.91.215.196]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2022 15:17:37 -0800 From: Andrzej Hajda To: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, netdev Cc: Eric Dumazet , Jani Nikula , Daniel Vetter , Lucas De Marchi , Andrzej Hajda , Chris Wilson , Dmitry Vyukov , Jakub Kicinski , Marco Elver , Alexander Potapenko , "David S . Miller" Subject: [PATCH v2 03/11] [DO NOT MERGE] ref_tracker: remove filter_irq_stacks() call Date: Tue, 22 Feb 2022 00:16:49 +0100 Message-Id: <20220221231705.1481059-8-andrzej.hajda@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220221231705.1481059-1-andrzej.hajda@intel.com> References: <20220221231705.1481059-1-andrzej.hajda@intel.com> MIME-Version: 1.0 Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Eric Dumazet After commit e94006608949 ("lib/stackdepot: always do filter_irq_stacks() in stack_depot_save()") it became unnecessary to filter the stack before calling stack_depot_save(). Signed-off-by: Eric Dumazet Cc: Marco Elver Cc: Alexander Potapenko Cc: Dmitry Vyukov Signed-off-by: David S. Miller Signed-off-by: Andrzej Hajda --- lib/ref_tracker.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ref_tracker.c b/lib/ref_tracker.c index 9c0c2e09df666..dc7b14aa3431e 100644 --- a/lib/ref_tracker.c +++ b/lib/ref_tracker.c @@ -89,7 +89,6 @@ int ref_tracker_alloc(struct ref_tracker_dir *dir, return -ENOMEM; } nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 1); - nr_entries = filter_irq_stacks(entries, nr_entries); tracker->alloc_stack_handle = stack_depot_save(entries, nr_entries, gfp); spin_lock_irqsave(&dir->lock, flags); @@ -120,7 +119,6 @@ int ref_tracker_free(struct ref_tracker_dir *dir, return -EEXIST; } nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 1); - nr_entries = filter_irq_stacks(entries, nr_entries); stack_handle = stack_depot_save(entries, nr_entries, GFP_ATOMIC); spin_lock_irqsave(&dir->lock, flags); -- 2.25.1