Received: by 10.192.165.148 with SMTP id m20csp305183imm; Thu, 3 May 2018 20:55:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpLh3+vEeRPvLysrnO1FGa5BlMaEyAnPyI9e0eHGVYpWS1LuibS0/pX+s4zUlV0P/M2Df8p X-Received: by 2002:a17:902:9898:: with SMTP id s24-v6mr26268579plp.51.1525406148233; Thu, 03 May 2018 20:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525406148; cv=none; d=google.com; s=arc-20160816; b=MWtoOXO1FHIMiLCNVlBkGf5HBKYYvvkNOdtE2hHa4veJrRvC4Cshr+aawsD/D8Nz78 haZs0FdMyVO/3HdQn1MDE7NEQ8q0U2X61x3j+yYXhD8zahRXSfrCk3kkARcuA28uiNlW l2uCnNqF/t4UZVP4DiBh8e41/GvE6eCc1V86CMvFPaHDVfPGGO8TrpWQA60Po7OuXyVH exyp/JN4hnnoWPz/q12xoPhGVVoZvZ3MAG7D6zOrreLgJtwLtj7kRWFbwKSTJyZqk/Sp 3/wJWwwq1e7TdH0Kw1InL7BfsO3hTPL1Uc7ufrHwZ4JdE6qJ78SE41FWeT+mvLnwNQn4 X38A== 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 :arc-authentication-results; bh=X9/g/BwVrMBgC6qKRvwRmn8QAUkOSMmYhY9Qrov/NRI=; b=sr8u2m2Ot/1KnjZD4eDChWabl6JfyFrYjF4J+kUXQa9l3wIb34TkihI+RmmxZ8yqzy Vn7muNT/thJdmaMhZE8XLrAfv8iF7uOnZNLzZN16Y1sGwD5sGGTpiWYOxazvYHGojIsV 07GyLDMm72x5MyhIvG93lXNt5UyltkN8nR1JjDq3Y8G5sMSoNUjzlE10/JZFldl/4mDd eXRXgn0uNyKC5lZ77LaJ962yeQL6pkdnJuhILgj1nqLMQZXb8PWgww+joK3J1jyZiDmA 4NUKGX/r1b95OOw9qFZ04WZns/IcwMqR1taYp8YLp4XPf2d1tV26Uu7dR0pSVuFS3L3B RAVA== 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 h32-v6si14846754pld.170.2018.05.03.20.55.34; Thu, 03 May 2018 20:55:48 -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 S1751314AbeEDDym (ORCPT + 99 others); Thu, 3 May 2018 23:54:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:44941 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751236AbeEDDyl (ORCPT ); Thu, 3 May 2018 23:54:41 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 95024ABB2; Fri, 4 May 2018 03:54:39 +0000 (UTC) From: NeilBrown To: Thomas Graf , Herbert Xu Date: Fri, 04 May 2018 13:54:14 +1000 Subject: [PATCH 0/8] Assorted rhashtable fixes and cleanups Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <152540595840.18473.11298241115621799037.stgit@noble> 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 This series contains some bugfixes, mostly minor though one is worthy of a stable backport I think - tagged with Fixes and Cc: stable. Then there are improvements to walking, which have been discussed to some degree already. Finally a code simplification which I think is correct... Thanks, NeilBrown --- NeilBrown (8): rhashtable: silence RCU warning in rhashtable_test. rhashtable: remove nulls_base and related code. rhashtable: use cmpxchg() to protect ->future_tbl. rhashtable: fix race in nested_table_alloc() rhashtable: remove rhashtable_walk_peek() rhashtable: further improve stability of rhashtable_walk rhashtable: add rhashtable_walk_prev() rhashtable: don't hold lock on first table throughout insertion. include/linux/rhashtable.h | 61 +++---------- lib/rhashtable.c | 202 +++++++++++++++++++++----------------------- lib/test_rhashtable.c | 8 +- 3 files changed, 113 insertions(+), 158 deletions(-) -- Signature