Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1694758ybi; Sat, 25 May 2019 07:21:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzj18N8Kj/qvDtjrJEQTtWqQSoTTKAAUrJu5Xkj8pQ4ulmX4ztP8G1csvxMCVTl+XrrR6Br X-Received: by 2002:a63:dc09:: with SMTP id s9mr71723037pgg.425.1558794076533; Sat, 25 May 2019 07:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558794076; cv=none; d=google.com; s=arc-20160816; b=qCoc+VPgcyhBJ7ywrv3ScHNfmUezNYgl7dT7BZ1CdXWa09z1IxYAv24tuPQbl6/73D P/sNDckv/H59BdqLBJLLzfnsIZOHeXMBpNey6AsVku+C6qmZ+2CbmIxGGtKRbWU08K7h wDjzITLSm3fVRwpK5X6sHprsNdFrKrMxtkxopS+hIFKOFdPffbaoXuuW2RlSYsrvjrD5 4oqdzGgwa9BbCu6xMdncjnAdZPLdusP/7eK9dE4cHQra5I7sc+U89fz53an5aO9prh8v f8LcbiNxTiMBaCbrpIxlV4pfJ4CDPzelX62OygeVQ2Ae1gGwAKZTN3vK5wj8H1lwLCE0 5q5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oA6FcJ72zNid4SwAO5Y6rnUXHdUQj0L4tCh0ZCLJSFI=; b=dFFs65ll8BltHZLCv1LEWZXPJosDYG7FJY7MjdCpxZyVTXUbtiiRQViuXrkjIzl/k0 UILMySdrZkqIwUIeT8kFw87M98JZr5fPQKDBSvzG/xnL1iZxudRk9P/zOqzeEUBRRiAW FYLeIBuB6vYgTE13V/VkNVEMK+WiunSpSyC9Od0K5DIroVQBXEj7SNAjbRIoSv3mNKVV EQGHu7b9cN28aeC9X+yt57QPHTQXDYLyfQcCV/fZ52ieaHi8Ae5MXJEyYCjvmuscd+kf USbeM+5fzn61CEbtik4CnVjRzmucRMN/chOicaceSkIHhgu7f5W8IpkMAaQewDy5KdcT p3ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="NX/KmtDC"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si8276388plm.343.2019.05.25.07.21.01; Sat, 25 May 2019 07:21:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="NX/KmtDC"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727026AbfEYOT5 (ORCPT + 99 others); Sat, 25 May 2019 10:19:57 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:46301 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726969AbfEYOT5 (ORCPT ); Sat, 25 May 2019 10:19:57 -0400 Received: by mail-pl1-f195.google.com with SMTP id r18so5298407pls.13 for ; Sat, 25 May 2019 07:19:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=oA6FcJ72zNid4SwAO5Y6rnUXHdUQj0L4tCh0ZCLJSFI=; b=NX/KmtDCs4EGb9mO5SMMkYszAarGd0UZP0S8vAwwQjy5ElvPnArSQCM79p6zDDG599 0Nrwt8GmeJlUpxdahkhFUQgjljvJWEl8W0oRgaWVvzii8pMGxtDBNNez3szb6V5hR7Sl /oVTbrXCcQaK/wd3nTy2BIpckmRhnlhqmFMt8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oA6FcJ72zNid4SwAO5Y6rnUXHdUQj0L4tCh0ZCLJSFI=; b=actoabjk+HMBYQEKL3Xzxs4PTcjCSS0ZaxCP0ERJSHjtFGlYIogWff54fYc3KojSLw IK47cA8jS8cHMeOLBVyPxXo+9TMJEYEqEnRiG3uSFWTGm0aWhcELfb7BgDYIScs6/Zos Hck014OGg1TzrCSRmgi25YilM/FUrfeq9JDLardU2lMuM61isCLJyU1Y5NcqxUCvpRRd 8Wg8JSszRzN7WfAdWuqC7ww8UtSTzmUngmevzgVw97u617bmBJbQUj3EBu0fpkJ4GcPx nwm8z69GF3ikXr4IJLkpl8Ugh7jKlLT1vB0CoO8eezdVOltJKJnXi2vXiMY6mh1ip/ci 4juw== X-Gm-Message-State: APjAAAX/p1CIF4KwVK7ZEwMfViUJRJ53TnMXHbbgIvLs82T09X2WAs38 HvlbUjKKCCE6CYPGff13viwmjQ== X-Received: by 2002:a17:902:6bcb:: with SMTP id m11mr42398103plt.318.1558793996314; Sat, 25 May 2019 07:19:56 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id p63sm6795234pfb.70.2019.05.25.07.19.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 May 2019 07:19:55 -0700 (PDT) Date: Sat, 25 May 2019 10:19:54 -0400 From: Joel Fernandes To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Benjamin Herrenschmidt , Ingo Molnar , Jonathan Corbet , Josh Triplett , kvm-ppc@vger.kernel.org, Lai Jiangshan , linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Mathieu Desnoyers , Michael Ellerman , Miguel Ojeda , "Paul E. McKenney" , Paul Mackerras , rcu@vger.kernel.org Subject: Re: [PATCH RFC 0/5] Remove some notrace RCU APIs Message-ID: <20190525141954.GA176647@google.com> References: <20190524234933.5133-1-joel@joelfernandes.org> <20190524232458.4bcf4eb4@gandalf.local.home> <20190525081444.GC197789@google.com> <20190525070826.16f76ee7@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190525070826.16f76ee7@gandalf.local.home> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 25, 2019 at 07:08:26AM -0400, Steven Rostedt wrote: > On Sat, 25 May 2019 04:14:44 -0400 > Joel Fernandes wrote: > > > > I guess the difference between the _raw_notrace and just _raw variants > > > is that _notrace ones do a rcu_check_sparse(). Don't we want to keep > > > that check? > > > > This is true. > > > > Since the users of _raw_notrace are very few, is it worth keeping this API > > just for sparse checking? The API naming is also confusing. I was expecting > > _raw_notrace to do fewer checks than _raw, instead of more. Honestly, I just > > want to nuke _raw_notrace as done in this series and later we can introduce a > > sparse checking version of _raw if need-be. The other option could be to > > always do sparse checking for _raw however that used to be the case and got > > changed in http://lists.infradead.org/pipermail/linux-afs/2016-July/001016.html > > What if we just rename _raw to _raw_nocheck, and _raw_notrace to _raw ? That would also mean changing 160 usages of _raw to _raw_nocheck in the kernel :-/. The tracing usage of _raw_notrace is only like 2 or 3 users. Can we just call rcu_check_sparse directly in the calling code for those and eliminate the APIs? I wonder what Paul thinks about the matter as well. thanks, Steven!