Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp73505rwb; Tue, 13 Dec 2022 14:15:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf6q6voKT8YxNVb3u6H0wyPRNkEQXlDZPBAbb6Znw4IUlWjQl+vWLUGJlTqbkS2PzKj3Ey8x X-Received: by 2002:a17:907:8e85:b0:78d:f454:ba32 with SMTP id tx5-20020a1709078e8500b0078df454ba32mr17660663ejc.49.1670969750982; Tue, 13 Dec 2022 14:15:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670969750; cv=none; d=google.com; s=arc-20160816; b=RjiEsTEcmKQq3HoIxbViG8iMDBChhk+cyzq2Y8xVN8uvXsIC+YMXSBqgJ4nkImdqLZ v4OeEtF5DKwWiWoii3oV1dEPLbGW4WBCbrchqIQmUgJIw37DQOGs7o+Y/WGOqJxSFqJR R6pY1PtU4Nzlj6nf3uHaCKikXxZvtyvE/bezFn/aKNvCKi2NVP/OqCsKU2cDW47FlGUS o9zGSrN3mdwj3PLAMov564FgU0rjrwy+G0/Nw0QMBQiUiU3CvzjNFM9YcowIx969/W5G G14NE2XTlbJoNFh49Wym1ybarKdGv/pinFali7b3+TEug2kSw4se45vkwsSK2DyWWo7+ xtSQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ah/T9/v96bTXudUopkww7VGzdduYIsLnjDeq9t7RTG4=; b=st06BthwQ8acXPuhLcbBxPgrvUq7J0RWuSAMA4O9ruU3lgig8VtRhe+/JPxBFcPfZF Cb9fXQWkQoNm5CaTbxX8nFFCQdZFox6ECKOIkiiWx1DYedfFrK25btAINJovMojW8iHV AJ2EIihXOe7jZd8aiXBhOPG0Zr74jJPJcX9jxc6yOMM9MQVvPSH0bP79e8g1MDrD/9TE zt533Z+Ie3d+NwCMhOP290uSkRVrsiSpbmV4uz8rrG4hwF1U7tSKpc6uHXWAzOLlamyb +fUmbUtqCC8VtyRl/Rd0NjVXRzzAW6wXdVIPI8LjmLB0j38/L6Z6J2rLBn0YTXo7kDJw jhQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=HBlTiLkz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb18-20020a1709071c9200b007c082259effsi8786065ejc.101.2022.12.13.14.15.25; Tue, 13 Dec 2022 14:15:50 -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=fail header.i=@igalia.com header.s=20170329 header.b=HBlTiLkz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236175AbiLMWFE (ORCPT + 73 others); Tue, 13 Dec 2022 17:05:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236936AbiLMWE4 (ORCPT ); Tue, 13 Dec 2022 17:04:56 -0500 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35835C749; Tue, 13 Dec 2022 14:04:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ah/T9/v96bTXudUopkww7VGzdduYIsLnjDeq9t7RTG4=; b=HBlTiLkzOT3m3OqhIk+KCZuz4M HNPFk0cj83zBHMSxqgibAU9GEns4iv9A5BkXLFSNwTAdBffbqWbDiJy+EN9F923BPxfhWdvFzA9tu T9GPT4kQyjmOVNzzRLLIB8n1jpZHHT16xjIFFxhTAykqBofc+wanW+IaOLzb4AzzZL5ZHqEMN+cZa qffPIEC4Vlo2R3KbfiPnpAPH2Bf0gk4pG4qJyLDePMpk1EbNFH9wqJ1bVDOsUdaOhS16RG5hFxPbK 8Sd7qMJctKYd/O9L5199ojEAbKrU6tVWr3dn6hgzgifWV9qWN0YkSdc9wdmJXgOKktVsjZH6s0Ww0 EUd2pS7w==; Received: from 200-158-226-94.dsl.telesp.net.br ([200.158.226.94] helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1p5DOL-002nA3-CN; Tue, 13 Dec 2022 23:04:49 +0100 Message-ID: <07b8285c-abfc-dcc6-5a20-b6f8c9bc7e1e@igalia.com> Date: Tue, 13 Dec 2022 19:04:41 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] ftrace: Prevent RCU stall on PREEMPT_VOLUNTARY kernels Content-Language: en-US To: rostedt@goodmis.org Cc: linux-kernel@vger.kernel.org, "Masami Hiramatsu (Google)" , rcu@vger.kernel.org, kernel-dev@igalia.com, kernel@gpiccoli.net, "Paul E . McKenney" , Mark Rutland References: <20221115204847.593616-1-gpiccoli@igalia.com> <20221116153620.353819e9c6acb1bf39adeca2@kernel.org> From: "Guilherme G. Piccoli" In-Reply-To: <20221116153620.353819e9c6acb1bf39adeca2@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, 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 16/11/2022 03:36, Masami Hiramatsu (Google) wrote: > On Tue, 15 Nov 2022 17:48:47 -0300 > "Guilherme G. Piccoli" wrote: > >> The function match_records() may take a while due to a large >> number of string comparisons, so when in PREEMPT_VOLUNTARY >> kernels we could face RCU stalls due to that. >> >> Add a cond_resched() to prevent that. >> >> Suggested-by: Steven Rostedt >> Acked-by: Paul E. McKenney # from RCU CPU stall warning perspective >> Cc: Masami Hiramatsu >> Cc: Mark Rutland >> Signed-off-by: Guilherme G. Piccoli > > This looks good to me. > > Acked-by: Masami Hiramatsu (Google) > > Thanks! > Hi Steve, sorry to annoy, just a regular ping to see if we can get this into 6.2 (if too late, not a huge deal). Thanks, Guilherme