Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5837995rwb; Tue, 22 Nov 2022 05:41:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf6UuGNQUs/XjdwNCaGtXvZ+YFyHXkDcl20eqoMwW16Y7oE/cBrEOZkI7o6vPflqjI7xypi6 X-Received: by 2002:a17:907:393:b0:78d:f308:1cd with SMTP id ss19-20020a170907039300b0078df30801cdmr20029595ejb.754.1669124486647; Tue, 22 Nov 2022 05:41:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669124486; cv=none; d=google.com; s=arc-20160816; b=xVYzb2flt3lvqklM0eUBCcVYFSg7X9pzcbIXhsiYe+x+6teYxxP3uIgxO3qk18UDKv zyIg9wb/pfCzAM2w77rvgAcor8j/eS20j+JP7YwYP+DyJEXjTuq0ykXfnAjHIsvSE806 rx6rR/KQtY3iXOnKoFlvlya4rVT9lb0BkzPEQPG3aZ3emhFobppU+bbkAKpUy8sSc6LQ 7n7DUqRwdHRoqL4XtfTjH3om7zXqKRZL6R/tpEuSeVsRkYM+3N6t/7NFKl5HawVa9C4G qGpRhdVTuJGlhSRWZux2+3+gfL1yDEjJN4Bdl8e+HcXtEuFBCUTfjfjc7eFnVm+/W4Ou 9B6g== 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=5YKddbVH+BPkPtVxrSUx3wA/jy8L3/XYxRl/IOTGxlk=; b=UvrjxE5ysoz1fZUvQMUVEOjmhHEzDDyTqx1AUowKZprMROIDZGOlb13ZRLe/idrC4W tVJzQvuqQMfTQi0xhOiPXI/9h+6k7kzuy7t6rAtzS7m40TrGdCuQrVQfFtfC6DM7pQKp nZvqRt8B634B156TmexXsKQWTPNxlGbNgu8dV8DaKZUDl0q+bVpX6eWSvtJn5r9fDqFq TTF0LNOqh+aN0W8SSZsGocLv85LStlrb4dXhwd5bGnh2t1wqO1SgMrYkx2I5NQRdTiJN xxcOQbeG6cFbhhGTHljJDIOHtcByDJswVfVWhnEeRjCbz7pvmj+chtRYehRvo+/3XF5I rLww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=oJOoz2Df; 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 h12-20020a05640250cc00b004537a3c4982si7931163edb.601.2022.11.22.05.41.04; Tue, 22 Nov 2022 05:41:26 -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=oJOoz2Df; 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 S233614AbiKVNRE (ORCPT + 91 others); Tue, 22 Nov 2022 08:17:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233714AbiKVNQ6 (ORCPT ); Tue, 22 Nov 2022 08:16:58 -0500 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B56FBE43; Tue, 22 Nov 2022 05:16:57 -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=5YKddbVH+BPkPtVxrSUx3wA/jy8L3/XYxRl/IOTGxlk=; b=oJOoz2DfzxaiKweE3bwmPSkfvo zr4WGycVik6FM1VQKYwEF8sYkdE9ZEpIyaLdqfyq7ME8DBpd1qEZgABtbYyjhWiKsVvj/Tw/wrN2V pf0mIPqbfz4st/D4FDN6hBo7P7duphvCzcejlAvKykrsIcW6Ngegr1LBQQfxk8duVsh3IgIU8EERM j28zcIlspf1e9pxe9UgkP84wM3cMAj9hHxyJor7YpZOS2mN5ewtSNG82hRV4RgoGvRqawcFmFJOOA rwpf7ApQg2k/RJ2VHSvAhke21xulK4q0dfNlmBFn6tOBXoI9vdl7Y66FxVtNF5pnjzt5FfIZctA6u BI4bkHog==; Received: from [177.102.6.147] (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 1oxT8q-006x5N-8b; Tue, 22 Nov 2022 14:16:48 +0100 Message-ID: Date: Tue, 22 Nov 2022 10:16:41 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH] ftrace: Prevent RCU stall on PREEMPT_VOLUNTARY kernels Content-Language: en-US To: rostedt@goodmis.org Cc: "Masami Hiramatsu (Google)" , linux-kernel@vger.kernel.org, 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, apologies for the ping, just want to ask you if you plan to take this one or should I change something? Thanks in advance, Guilherme