Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3524825imc; Wed, 13 Mar 2019 22:07:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzg+wP1RhlvaPM8krmyI+iyB5ej9Eu1f8dhWJvzdZGxQuVFJh90KlitDc28mrZrzgcgY1b7 X-Received: by 2002:a62:168a:: with SMTP id 132mr47639563pfw.155.1552540037926; Wed, 13 Mar 2019 22:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552540037; cv=none; d=google.com; s=arc-20160816; b=rMGeVWpEQVT0IWUsXl35HmE1rGDvTBzz5OgjyS2gkDrB8Y3wu+Hk/mRarNiBv7inEJ a3TzDWjlySKr/x4y9L8Cm+x4TkK033yPyWPrz/iwYX+BUfj+GGnh1swOoq5LR5V0z2cQ Km1S3v/BFF8m9ooToYgujYGYOd9rS1VbtWMrlhHPnaKTyRZU3BNpIKmPZIW7ZKs/6F+r 4ycxTD+96xVKOtMH+OAjMcBJq3CBMfoKBP3bVt+J0OBMw8h7n64PzuZi1swJEIGrZgta geTWE2MYudcT8ugShFC0nuceGOl2WL/WnE9dVdJHFbuU3Ln8GLmwy4QWQ6n79UG6CZge C9PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:cc:subject:date:to:from; bh=b+NQekp5nrkGizD/2y3VHcp/nnhge4pkt6rtCdRDgCM=; b=Ev+3v4rcLPDXZ7mHmn8d9YtLocASmMy8D5aXaUm1x/CvF9UIFD1E4uB4E4OITTtZ0k 0uSDylNsk2vm/oYHJVdRCJlIlMH31gEf7vYGdmnvUUupWPMr4fzVLmTjlpZ9pP97HIj+ Up3wcT0cOhILm4/n9JNBdZFfnUdvrX3v8z2PUXbw3wnGoF075SE538eMEJdMOoR1ADK2 eLRL7PhU6stJBAXP+q4I9SUfFvgfuMIceu616PsFUTjpk53JBOEPkPPiSuy1bHSvLTuw vI4QC42v7HqTRwbolp0vdelqO5rNu2uZFznzxXRcFq2sJGd4XyfOQOhxmKEYpRSwSK0S 6dOA== ARC-Authentication-Results: i=1; mx.google.com; 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 s12si11683420pgi.416.2019.03.13.22.07.01; Wed, 13 Mar 2019 22:07:17 -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; 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 S1727022AbfCNFGk (ORCPT + 99 others); Thu, 14 Mar 2019 01:06:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:55794 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726103AbfCNFGj (ORCPT ); Thu, 14 Mar 2019 01:06:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6B9B2ADED; Thu, 14 Mar 2019 05:06:38 +0000 (UTC) From: NeilBrown To: Thomas Graf , Herbert Xu Date: Thu, 14 Mar 2019 16:05:28 +1100 Subject: [PATCH 0/3] Three rhashtable improvements Cc: netdev@vger.kernel.org, "Paul E. McKenney" , linux-kernel@vger.kernel.org Message-ID: <155253979234.5022.1840929790507376038.stgit@noble.brown> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These three patches have previously been posted, but at the end of a set where some early patches were contentious. These patches did not depend on the others, so I'm posting them separately. The second patch has been changed slightly to make use of the new API that Paul McKenney provided to check is call_rcu() has been called yet or not. Thanks, NeilBrown --- NeilBrown (3): rhashtable: use cmpxchg() in nested_table_alloc() rhashtable: don't hold lock on first table throughout insertion. rhashtable: rename rht_for_each*continue as *from. .clang-format | 8 +++--- include/linux/rhashtable.h | 53 +++++++++++++++------------------------ lib/rhashtable.c | 60 +++++++++++++++----------------------------- 3 files changed, 45 insertions(+), 76 deletions(-) -- Signature