From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF3F3C282E1 for ; Fri, 24 May 2019 23:50:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A225F217F9 for ; Fri, 24 May 2019 23:50:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="h1Yfyhrm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726396AbfEXXuC (ORCPT ); Fri, 24 May 2019 19:50:02 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:32769 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbfEXXuB (ORCPT ); Fri, 24 May 2019 19:50:01 -0400 Received: by mail-pl1-f194.google.com with SMTP id g21so4772741plq.0 for ; Fri, 24 May 2019 16:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=T411oidtPZE/SyBXnA5xe/v4182CyfqCsIw7xcrtw7w=; b=h1Yfyhrm1FED0jxfY2I/NspMxRT5TIJwzEmWWjpN49QToxU9ZGZbpFbhec3ZLORRCd jpV/RHW2DQVuQ6REsHLluVgcp8J/8f7MfNBg8yuFJKeM4vTFRi3l37IN4VY1lkR3I9qd ZWKxvmGD+ntgFm02ZtggbTrE3nvbMGZd9Jwq8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=T411oidtPZE/SyBXnA5xe/v4182CyfqCsIw7xcrtw7w=; b=MSWMyW6alG9SbhB8/Swgtwro1nCWfn97ssvBPtPC/g2Zr4aGaPiId21gVgLWrauwCL djvvIiv8fgPXnf9XCOP01WyXPZz+Y9A/BIfUsS8KvueDegDzux3lTisoxNba9+2L6PUF iiHvZPJ12lz+V7TY0DW4qt9Ns5TFNDBXMCwTPZP6lN0BllE0DcviZdNund5y3vGvhRgC QoUlFtN/1HEeBFmMgsUBcKxi26FMkMnO0XX1Ub5CGVv4migGUK0VLHyHA/B1FZfo+R76 VZ6/cgzWjCc0A/Zcd1v3l8A4QkX+QqeHl6Wp02LnI8nDr/B37pKcTcvTihn4pCzv76uy sDRw== X-Gm-Message-State: APjAAAVqFqMJp1IQPVFhp0lFIiKUBX+WhM0HP36ooeGss3i7p0I/XCey DKLQ2oU/sYXuSipYAavzdU7LFGuDKKgQwQ== X-Google-Smtp-Source: APXvYqxwZl/5ewT5nmPHvDNF3PVcRdSTyjHQUf1i/UtDMZkPW0EhWp82Y0t5mSMFBjTrA/fFj21Rqg== X-Received: by 2002:a17:902:4181:: with SMTP id f1mr87153377pld.22.1558741799771; Fri, 24 May 2019 16:49:59 -0700 (PDT) Received: from joelaf.cam.corp.google.com ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id q4sm3297595pgb.39.2019.05.24.16.49.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 24 May 2019 16:49:59 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , 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, Steven Rostedt Subject: [PATCH RFC 3/5] hashtable: Use the regular hlist_for_each_entry_rcu API Date: Fri, 24 May 2019 19:49:31 -0400 Message-Id: <20190524234933.5133-4-joel@joelfernandes.org> X-Mailer: git-send-email 2.22.0.rc1.257.g3120a18244-goog In-Reply-To: <20190524234933.5133-1-joel@joelfernandes.org> References: <20190524234933.5133-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hlist_for_each_entry_rcu already does not do any tracing. This series removes the notrace variant of it, so let us just use the regular API. In a future patch, we can also remove the hash_for_each_possible_rcu_notrace API that this patch touches. Signed-off-by: Joel Fernandes (Google) --- include/linux/hashtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/hashtable.h b/include/linux/hashtable.h index 417d2c4bc60d..47fa7b673c1b 100644 --- a/include/linux/hashtable.h +++ b/include/linux/hashtable.h @@ -189,7 +189,7 @@ static inline void hash_del_rcu(struct hlist_node *node) * not do any RCU debugging or tracing. */ #define hash_for_each_possible_rcu_notrace(name, obj, member, key) \ - hlist_for_each_entry_rcu_notrace(obj, \ + hlist_for_each_entry_rcu(obj, \ &name[hash_min(key, HASH_BITS(name))], member) /** -- 2.22.0.rc1.257.g3120a18244-goog From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 407D3C282E1 for ; Fri, 24 May 2019 23:55:19 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B58C120674 for ; Fri, 24 May 2019 23:55:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="h1Yfyhrm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B58C120674 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 459jsw6N3CzDqTy for ; Sat, 25 May 2019 09:55:16 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=joelfernandes.org (client-ip=2607:f8b0:4864:20::643; helo=mail-pl1-x643.google.com; envelope-from=joel@joelfernandes.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="h1Yfyhrm"; dkim-atps=neutral Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 459jlt18jszDqMG for ; Sat, 25 May 2019 09:50:02 +1000 (AEST) Received: by mail-pl1-x643.google.com with SMTP id w7so4751763plz.1 for ; Fri, 24 May 2019 16:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=T411oidtPZE/SyBXnA5xe/v4182CyfqCsIw7xcrtw7w=; b=h1Yfyhrm1FED0jxfY2I/NspMxRT5TIJwzEmWWjpN49QToxU9ZGZbpFbhec3ZLORRCd jpV/RHW2DQVuQ6REsHLluVgcp8J/8f7MfNBg8yuFJKeM4vTFRi3l37IN4VY1lkR3I9qd ZWKxvmGD+ntgFm02ZtggbTrE3nvbMGZd9Jwq8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=T411oidtPZE/SyBXnA5xe/v4182CyfqCsIw7xcrtw7w=; b=n5B2EUE+TvTJPGd2mcwaN7Kq00efATj0fMlJA00VD66V3ZD5dHro57GElcaX0CGae+ XIBy2NVLexOrG2VJsMH/uhph4WuH6Q1ZDcODPj8O2yuTaVV3pk9t82xyULluMp6+a4WS dryCJP50IMM36tMrMUzjV/NCf/XazPML7Qu9eR2VgfFCFHdrVkhInJCUTnOCOePGyWLH Gm9gkTh7/6hGwcpS3yn2OYrmuxh43Mu8qKqL2flM453hTILmXucYRLL/rW/yffK8qU1s a82WsJ0qmV3j+Ff5I3bJdkTYXheJA3+zghaJpq56TVbavrXSi0k4NkIe2zr0cbsuJuhq 69fg== X-Gm-Message-State: APjAAAXPtgpSgCn/qI7vr8EPK8sHEgKQVatXXmlCn7zbHHcwCpNb2/QA 66oKG62deN49kxl1+JOIXCfcEQ== X-Google-Smtp-Source: APXvYqxwZl/5ewT5nmPHvDNF3PVcRdSTyjHQUf1i/UtDMZkPW0EhWp82Y0t5mSMFBjTrA/fFj21Rqg== X-Received: by 2002:a17:902:4181:: with SMTP id f1mr87153377pld.22.1558741799771; Fri, 24 May 2019 16:49:59 -0700 (PDT) Received: from joelaf.cam.corp.google.com ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id q4sm3297595pgb.39.2019.05.24.16.49.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 24 May 2019 16:49:59 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Subject: [PATCH RFC 3/5] hashtable: Use the regular hlist_for_each_entry_rcu API Date: Fri, 24 May 2019 19:49:31 -0400 Message-Id: <20190524234933.5133-4-joel@joelfernandes.org> X-Mailer: git-send-email 2.22.0.rc1.257.g3120a18244-goog In-Reply-To: <20190524234933.5133-1-joel@joelfernandes.org> References: <20190524234933.5133-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: rcu@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org, Lai Jiangshan , Josh Triplett , kvm-ppc@vger.kernel.org, Miguel Ojeda , Ingo Molnar , Mathieu Desnoyers , Steven Rostedt , "Joel Fernandes \(Google\)" , "Paul E. McKenney" , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" hlist_for_each_entry_rcu already does not do any tracing. This series removes the notrace variant of it, so let us just use the regular API. In a future patch, we can also remove the hash_for_each_possible_rcu_notrace API that this patch touches. Signed-off-by: Joel Fernandes (Google) --- include/linux/hashtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/hashtable.h b/include/linux/hashtable.h index 417d2c4bc60d..47fa7b673c1b 100644 --- a/include/linux/hashtable.h +++ b/include/linux/hashtable.h @@ -189,7 +189,7 @@ static inline void hash_del_rcu(struct hlist_node *node) * not do any RCU debugging or tracing. */ #define hash_for_each_possible_rcu_notrace(name, obj, member, key) \ - hlist_for_each_entry_rcu_notrace(obj, \ + hlist_for_each_entry_rcu(obj, \ &name[hash_min(key, HASH_BITS(name))], member) /** -- 2.22.0.rc1.257.g3120a18244-goog From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Joel Fernandes (Google)" Date: Fri, 24 May 2019 23:49:31 +0000 Subject: [PATCH RFC 3/5] hashtable: Use the regular hlist_for_each_entry_rcu API Message-Id: <20190524234933.5133-4-joel@joelfernandes.org> List-Id: References: <20190524234933.5133-1-joel@joelfernandes.org> In-Reply-To: <20190524234933.5133-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , 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, Steven Rostedt hlist_for_each_entry_rcu already does not do any tracing. This series removes the notrace variant of it, so let us just use the regular API. In a future patch, we can also remove the hash_for_each_possible_rcu_notrace API that this patch touches. Signed-off-by: Joel Fernandes (Google) --- include/linux/hashtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/hashtable.h b/include/linux/hashtable.h index 417d2c4bc60d..47fa7b673c1b 100644 --- a/include/linux/hashtable.h +++ b/include/linux/hashtable.h @@ -189,7 +189,7 @@ static inline void hash_del_rcu(struct hlist_node *node) * not do any RCU debugging or tracing. */ #define hash_for_each_possible_rcu_notrace(name, obj, member, key) \ - hlist_for_each_entry_rcu_notrace(obj, \ + hlist_for_each_entry_rcu(obj, \ &name[hash_min(key, HASH_BITS(name))], member) /** -- 2.22.0.rc1.257.g3120a18244-goog