Received: by 10.74.165.76 with SMTP id s12csp2280614oom; Thu, 12 Apr 2018 10:02:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx49jYxZMUaqCaNjf+VUWyfFtl3OflL8JG4VguCn40Q4ZvXdhc2MP7sZ69RVDNaF4nxGmK/H8 X-Received: by 10.99.178.88 with SMTP id t24mr1350410pgo.212.1523552554073; Thu, 12 Apr 2018 10:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523552554; cv=none; d=google.com; s=arc-20160816; b=ZTzgUZ0oB6PEfmmJ5aZjcQAUCaAcc25YwMXn88rB1CbylF8TWGEdv18/DMVK+hig67 ZIvq4Ua3FvvJQggagcy2fdg8Dt+AMxWNIf3bSoVRsQ0lZF1cm9wvC5ZCMxciCEzhtQav tleY50R2RLmCVOxO+lQw17mUaVoj1BForgFsHjnncFkPro8FIDfbKZkD0DYCCDe0wkk8 TUDHKc+kSheyFYlGCS8gFltTvqWm0EMQnMVhrZmlpRaV0ZUJR7x+WsaOKO6QaUjOBTpF xlnRrp9mBgUT7PMgZE/EEWJ6PHk3/1MhQ9+Ftu4A9q/FOZIZQxbt5ySmwOzTpt657qFK BPcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:arc-authentication-results; bh=vSHOG98ug/aTsuPIVmsqpdify3ywSkF1VrgoUY5HeZw=; b=WMypmtrKco7yMwxazHBhiMpwKKXUXxcKVilPsAF4bKXP6TfuIDz/beqbM5m8c78b8H tk3SN39A94KwgpzTz7nxDfllHxtQQswJ4B8jFORIl6rVBJ5oRHmURyfohcJTVs6dqc92 H87sEj6RfzP5fKIQK7v9TUPG7dBiCrnY3wh+d9hB3p9G/hy9lBnS4gxkX+wtOEG1EHwP G4OzL/41oP1OWcfoGIq6MlPV08PXwywbJodPjMoRrN96Aj+HrXgZSXEauGNDoXEwIyZ1 BF68vKl+z+PnjHjVhlR1cigvTPTlQXXDsRWsP52zjRyn/hmRhLrZDWEAbjwaJ8ld1zGZ Dw+w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si3659875plx.589.2018.04.12.10.01.55; Thu, 12 Apr 2018 10:02:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752882AbeDLRAl (ORCPT + 99 others); Thu, 12 Apr 2018 13:00:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50672 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752446AbeDLRAj (ORCPT ); Thu, 12 Apr 2018 13:00:39 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8D3ACC9430; Thu, 12 Apr 2018 17:00:39 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5301667E56; Thu, 12 Apr 2018 17:00:39 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9EA7F1808800; Thu, 12 Apr 2018 17:00:38 +0000 (UTC) Date: Thu, 12 Apr 2018 13:00:38 -0400 (EDT) From: Bob Peterson To: Andreas Gruenbacher Cc: cluster-devel@redhat.com, Herbert Xu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, NeilBrown , Thomas Graf , Tom Herbert Message-ID: <2059591212.18898416.1523552438431.JavaMail.zimbra@redhat.com> In-Reply-To: <20180329120612.6104-1-agruenba@redhat.com> References: <20180329120612.6104-1-agruenba@redhat.com> Subject: Re: [Cluster-devel] [PATCH v2 0/2] gfs2: Stop using rhashtable_walk_peek MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.3.116.80, 10.4.195.6] Thread-Topic: gfs2: Stop using rhashtable_walk_peek Thread-Index: s6Q4xPpE6clD196Go+Y/DeDzy/M1pg== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 12 Apr 2018 17:00:39 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Original Message ----- > Here's a second version of the patch (now a patch set) to eliminate > rhashtable_walk_peek in gfs2. > > The first patch introduces lockref_put_not_zero, the inverse of > lockref_get_not_zero. > > The second patch eliminates rhashtable_walk_peek in gfs2. In > gfs2_glock_iter_next, the new lockref function from patch one is used to > drop a lockref count as long as the count doesn't drop to zero. This is > almost always the case; if there is a risk of dropping the last > reference, we must defer that to a work queue because dropping the last > reference may sleep. > > Thanks, > Andreas > > Andreas Gruenbacher (2): > lockref: Add lockref_put_not_zero > gfs2: Stop using rhashtable_walk_peek > > fs/gfs2/glock.c | 47 ++++++++++++++++++++++++++++------------------- > include/linux/lockref.h | 1 + > lib/lockref.c | 28 ++++++++++++++++++++++++++++ > 3 files changed, 57 insertions(+), 19 deletions(-) > > -- > 2.14.3 Hi, Thanks. These two patches are now pushed to the for-next branch of the linux-gfs2 tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/?h=for-next&id=450b1f6f56350c630e795f240dc5a77aa8aa2419 https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/?h=for-next&id=3fd5d3ad35dc44aaf0f28d60cc0eb75887bff54d Regards, Bob Peterson Red Hat File Systems