Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4121328rwj; Tue, 20 Dec 2022 06:24:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Gaak2qarmW0XUaKI1CCCgBoE12WPa3FLGPtdWLbLhlZs89bbp5ynikw1UmDyh4Q/0192B X-Received: by 2002:a17:90b:1181:b0:219:c87a:6926 with SMTP id gk1-20020a17090b118100b00219c87a6926mr47696183pjb.26.1671546244828; Tue, 20 Dec 2022 06:24:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671546244; cv=none; d=google.com; s=arc-20160816; b=Lkcw34GXSaDHJVRJ0BZtqDuTPuVTZAxUSVRTeYpCI3PPudU/nwi1pwiA+r9XWYWCKQ ZCkBHyT7IiEe3/IKRpzNb/0mAqdRwUl4mKHyxwXqRYB642FW7yIkF0qp52w9+azAp8M/ oQFdiJAINjdhiWgZS+aVVK12pFGk1s2K3tLbVKUtCndlu8Hu9E0QHOjcaVWLKTkzZ+FH zna3XBL7qmntsvAQcaCozDUojh8XS1NwUCzxUdKTrqOgSdvhBSpgWK4FopgO594Wj/2v sAayv/U4GWe/8dni9+ToZbsHhPTDR/3PzyrMS4KKZqzwZpnTCAYWstwqYh5zFYhrsE2K B8Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=w7fZLrPgHRZYmoP8DfApsz/pBuU5o/kKkLNQDI8tOv8=; b=ZCmjxAf5G4QgYE4L3R5AmsrQFcp70h++m34+MVY0lJxtzr9yj8lC1CrXfTQ4S3iAZJ SugpV7co163bZaOr7Uh1u7DWZPbkT/rSI36eoLplbR+4BjUSH155xF6eL7Lw//wUXUqT DxjUZq7oNiS54+OFTkSWdSVuI6q1OqvWNVnAu96K/UbKCYwFTgL9rRcQGKuhHPcN0jZI zGelRfVZHVUn+9rTbcD69SB60wSsKuJIDOyaoFsb/BtHTLxC2kGFSoX5OmtDle4mPmvh E2JxEModUV58/kKs/WDF6kZTx6b4H0dgpUVuiraPc3tHSegQWipMiAJqnX/E2eT6EBGT 6R1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Yn8aETjI; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nl1-20020a17090b384100b002233c2053c8si13542241pjb.78.2022.12.20.06.23.55; Tue, 20 Dec 2022 06:24:04 -0800 (PST) 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=@intel.com header.s=Intel header.b=Yn8aETjI; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233815AbiLTOLr (ORCPT + 69 others); Tue, 20 Dec 2022 09:11:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233895AbiLTOLT (ORCPT ); Tue, 20 Dec 2022 09:11:19 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9621CDEE7; Tue, 20 Dec 2022 06:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671545452; x=1703081452; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+CovmIj2Qxzr2m1kZzvu2XhklJ2GFoRQHFoqU6y1iWk=; b=Yn8aETjIetu0qqFW59a5eg7JLv3Tf9Tsln8JSQXANy1Ez/bjoIIKbDSf QCZn12ZLW3ZD1ThYXVevhc083t+Ew+7kxQghty4MJL2AGlxZIuvmHu/cV 4vU1Lxnqk1IEvil+sNLpou/UMuywRd8QEDjq1CBQ7LNgCwl9b9ipI4STC 2xRXr7CFE9JHD2i63ZxLcJEmoHGM2p9Z6wnPJVOY2YB6/f+uH+izC/MS8 xARQIJCQe+lFg9qsaLndIIPa3RKBfizC0zuCKamHAH6JoG/WgawUmWj4J NrFJYs8nkyC9jxrh1+DPWWe5IU9/22QoBnTrXY3H5VkaEilXsxHchMFFQ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="299294511" X-IronPort-AV: E=Sophos;i="5.96,259,1665471600"; d="scan'208";a="299294511" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 06:10:52 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="739773833" X-IronPort-AV: E=Sophos;i="5.96,259,1665471600"; d="scan'208";a="739773833" Received: from zq-optiplex-7090.bj.intel.com ([10.238.156.129]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 06:10:50 -0800 From: Zqiang To: paulmck@kernel.org, frederic@kernel.org, quic_neeraju@quicinc.com, joel@joelfernandes.org Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rcu: Fix missing TICK_DEP_MASK_RCU_EXP dependency check Date: Tue, 20 Dec 2022 22:16:25 +0800 Message-Id: <20221220141625.3612085-1-qiang1.zhang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE 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 This commit add TICK_DEP_MASK_RCU_EXP dependency check in check_tick_dependency(), fix commit df1e849ae4559 ("rcu: Enable tick for nohz_full CPUs slow to provide expedited QS"). Signed-off-by: Zqiang --- include/trace/events/timer.h | 3 ++- kernel/time/tick-sched.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/trace/events/timer.h b/include/trace/events/timer.h index 2e713a7d9aa3..3e8619c72f77 100644 --- a/include/trace/events/timer.h +++ b/include/trace/events/timer.h @@ -371,7 +371,8 @@ TRACE_EVENT(itimer_expire, tick_dep_name(PERF_EVENTS) \ tick_dep_name(SCHED) \ tick_dep_name(CLOCK_UNSTABLE) \ - tick_dep_name_end(RCU) + tick_dep_name(RCU) \ + tick_dep_name_end(RCU_EXP) #undef tick_dep_name #undef tick_dep_mask_name diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index b0e3c9205946..ba2ac1469d47 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -281,6 +281,11 @@ static bool check_tick_dependency(atomic_t *dep) return true; } + if (val & TICK_DEP_MASK_RCU_EXP) { + trace_tick_stop(0, TICK_DEP_MASK_RCU_EXP); + return true; + } + return false; } -- 2.25.1