Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp292254img; Wed, 20 Mar 2019 20:45:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTnYjxORbQKgcivSqUUADyDGVHXc2IKCDWNsiMytt8FKI8TTmQuDiwt6zumxagO0V7rl+T X-Received: by 2002:a63:545f:: with SMTP id e31mr1351522pgm.409.1553139915245; Wed, 20 Mar 2019 20:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553139915; cv=none; d=google.com; s=arc-20160816; b=W7JL22GEts/yY4TOm+otBDGuZ3BwzTVsuL4PkIXmUMKZCajWBZLzpAitOT+WbjeaCu mXcmoskjd0RPhTeNeLz+4IqboLoaOK6w82v2J/FWLM14Ap7Etv0EpdjOYO9uvb4AvhXv bxgPwhHq4611gj+knbtwiCSbAg0t+o+XjYJNYKnMcn4anRkhzwkG7u2Z1aDkVCgH9AuE 0Zs0lk8hxG9mVpSfBpy/XNStrrdTY+Hs+o8sFDxUkicM6SzUAQ/7WImaWSfK6IH+21Fe 2AZmBb1hEpWDo82gb+6FWqMuSyHydWbsnnNhABFtELRbQSOWD9E0wgkE3yZjImWp+R57 2cMA== 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=hRT+m++5DgCaTHt1FOSe19VdClnthQJmTClHN80iH38=; b=0KWTWi6bUg3f8VlJ29dOagTdIWfIoB4xhOP4607ca1QJ7DP0f/eWTWNWZlVBNBkS54 quPi0qk5bCxGBvMp3onJ9TlIyzDzFOWwyIZZpXNx1kNcaCZYAPtoGk+ajbJKYk+zRWFC h1VnK3Zu84xmA82YzcvZXq8pVw63waxW/wVyY+rZUtKF1plpiMJwJN9wJ3v7sMfH0Hvp XR4fFRm5AwGJoEOczzXsKmOgxxSLIbHfROJPTMyVh0MqFG8h9ua7wok/PjcLiTnFaLKA eM06ZIv0gZswTZ9NhsuutPf0iMdayGUJLc0wvKxc3QAdAyuaxZs1mkCRhDuYmVg+r9uD oBnA== 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 z8si3142982pgp.527.2019.03.20.20.44.58; Wed, 20 Mar 2019 20:45:15 -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 S1727844AbfCUDoU (ORCPT + 99 others); Wed, 20 Mar 2019 23:44:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:58766 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727213AbfCUDoU (ORCPT ); Wed, 20 Mar 2019 23:44:20 -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 92A4EAD49; Thu, 21 Mar 2019 03:44:18 +0000 (UTC) From: NeilBrown To: David Miller Date: Thu, 21 Mar 2019 14:42:39 +1100 Subject: [PATCH 0/2] Two clean-ups for rhashtable. Cc: tgraf@suug.ch, netdev@vger.kernel.org, herbert@gondor.apana.org.au, linux-kernel@vger.kernel.org Message-ID: <155313966311.31132.17461701268394583387.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 two patches make small improvements to rhashtable, but are otherwise unrelated. Thanks to Herbert, Miguel, and Paul for the review. NeilBrown --- NeilBrown (2): 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 | 54 ++++++++++++++------------------------------ 3 files changed, 41 insertions(+), 74 deletions(-) -- Signature